Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002155/0.002155, allocations: 211.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2575/0.2575, allocations: 46.95 MB / 360.9 MB, free: 4.059 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 67.89 kB / 0.4966 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3853, allocations: 66.04 MB / 0.5611 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001799/0.3871, allocations: 495.6 kB / 0.5615 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.39, allocations: 1.346 MB / 0.5628 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.679e-05/0.39, allocations: 0 / 0.5628 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.026e-05/0.3901, allocations: 0 / 0.5628 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.3904, allocations: 11.94 kB / 0.5629 GB, free: 2.332 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.3919, allocations: 259.2 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.639e-05/0.392, allocations: 11.98 kB / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.512e-05/0.392, allocations: 0 / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.149e-05/0.3921, allocations: 0 / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.3921, allocations: 7.875 kB / 0.5631 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.3922, allocations: 0 / 0.5631 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004424/0.3966, allocations: 0.7262 MB / 0.5638 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.3966, allocations: 0 / 0.5638 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.3966, allocations: 7.875 kB / 0.5638 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004039/0.397, allocations: 174.2 kB / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.397, allocations: 0 / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.397, allocations: 0 / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.397, allocations: 0 / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005869/0.3976, allocations: 315.6 kB / 0.5643 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.3977, allocations: 12.03 kB / 0.5643 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.3977, allocations: 0.9375 kB / 0.5643 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.3979, allocations: 110.5 kB / 0.5644 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.3979, allocations: 384 / 0.5644 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.3979, allocations: 4.375 kB / 0.5644 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.3981, allocations: 59.47 kB / 0.5645 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3981, allocations: 4 kB / 0.5645 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.3981, allocations: 0 / 0.5645 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3981, allocations: 0 / 0.5645 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.581e-05/0.3982, allocations: 29.7 kB / 0.5645 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001748/0.3984, allocations: 101.3 kB / 0.5646 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.923e-05/0.3984, allocations: 44.31 kB / 0.5647 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.466e-05/0.3985, allocations: 38.56 kB / 0.5647 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.3985, allocations: 0 / 0.5647 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001033/0.3986, allocations: 64.27 kB / 0.5648 GB, free: 388 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3986, allocations: 0 / 0.5648 GB, free: 388 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003657/0.399, allocations: 118.7 kB / 0.5649 GB, free: 244 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.3991, allocations: 77.11 kB / 0.5649 GB, free: 148 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3992, allocations: 101.8 kB / 0.565 GB, free: 36 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3992, allocations: 25.7 kB / 0.5651 GB, free: 4 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.278e-05/0.3993, allocations: 80.39 kB / 0.5651 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.574e-05/0.3994, allocations: 11.98 kB / 0.5652 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.3994, allocations: 13.66 kB / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3996, allocations: 314.8 kB / 0.5655 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.622e-05/0.3996, allocations: 29.7 kB / 0.5655 GB, free: 15.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/0.3997, allocations: 25.7 kB / 0.5655 GB, free: 15.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.435e-05/0.3998, allocations: 68.2 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3998, allocations: 0 / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001219/0.3999, allocations: 97.05 kB / 0.5657 GB, free: 15.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.3999, allocations: 37.64 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3999, allocations: 4.094 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.4, allocations: 0 / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.4, allocations: 0 / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.4, allocations: 0 / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.269e-05/0.4, allocations: 4 kB / 0.5657 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.4, allocations: 0 / 0.5657 GB, free: 15.26 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.4001, allocations: 135.5 kB / 0.5658 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.4001, allocations: 7.938 kB / 0.5659 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.4002, allocations: 3.156 kB / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.4002, allocations: 0 / 0.5659 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.4002, allocations: 4 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4002, allocations: 0 / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.4003, allocations: 105.3 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4003, allocations: 0 / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.4003, allocations: 3.938 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.4003, allocations: 0 / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.4003, allocations: 3.938 kB / 0.566 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.82e-07/0.4003, allocations: 0 / 0.566 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4003, allocations: 4 kB / 0.566 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.4005, allocations: 120.5 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-06/0.4005, allocations: 0 / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.4005, allocations: 11.97 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-06/0.4005, allocations: 0 / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.4005, allocations: 0 / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.4005, allocations: 3.938 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.079e-05/0.4006, allocations: 79.28 kB / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4006, allocations: 0 / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003308/0.4009, allocations: 63.86 kB / 0.5662 GB, free: 14.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001101/0.402, allocations: 339.3 kB / 0.5666 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001867/0.4022, allocations: 118.7 kB / 0.5667 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4022, allocations: 4.062 kB / 0.5667 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.599e-05/0.4023, allocations: 81.11 kB / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.4025, allocations: 4 kB / 0.5668 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003333/0.4028, allocations: 114.7 kB / 0.5669 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.406e-05/0.4029, allocations: 55.36 kB / 0.5669 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.195e-06/0.4029, allocations: 0 / 0.5669 GB, free: 13.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.267e-05/0.4029, allocations: 7.438 kB / 0.5669 GB, free: 13.91 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4029, allocations: 0 / 0.5669 GB, free: 13.91 MB / 414.1 MB Notification: Performance of Templates: time 0.005772/0.4087, allocations: 1.601 MB / 0.5685 GB, free: 12.32 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.404711300507188]