Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.001894/0.001894, allocations: 91.61 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002056/0.002056, allocations: 169.3 kB / 24.28 MB, free: 156 kB / 18.57 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.639/1.639, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3387/0.3387, allocations: 32.8 MB / 293.9 MB, free: 1.199 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.927e-05/3.081e-05, allocations: 5.688 kB / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001521/0.001552, allocations: 496.8 kB / 375.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006737/0.002225, allocations: 259.3 kB / 376 MB, free: 4.281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.372e-05/0.002249, allocations: 4 kB / 376 MB, free: 4.277 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.098e-05/0.00226, allocations: 0 / 376 MB, free: 4.277 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.85e-06/0.002265, allocations: 0 / 376 MB, free: 4.277 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.002611, allocations: 55.75 kB / 376 MB, free: 4.223 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.91e-05/0.00266, allocations: 7.984 kB / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.676e-05/0.002687, allocations: 0 / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.572e-05/0.002713, allocations: 0 / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.002737, allocations: 0 / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.002746, allocations: 0 / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.002898, allocations: 63.83 kB / 376.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.002909, allocations: 7.984 kB / 376.1 MB, free: 4.145 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.621e-05/0.002925, allocations: 4 kB / 376.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.003077, allocations: 63.8 kB / 376.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003079, allocations: 0 / 376.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.003079, allocations: 0 / 376.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.003083, allocations: 0 / 376.2 MB, free: 4.078 MB / 346.7 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.0004362/0.003519, allocations: 389.9 kB / 376.6 MB, free: 3.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.003561, allocations: 8.031 kB / 376.6 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.003613, allocations: 4.938 kB / 376.6 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.003728, allocations: 108.6 kB / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.003741, allocations: 384 / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.003748, allocations: 384 / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.003851, allocations: 63.97 kB / 376.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.003859, allocations: 192 / 376.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.003869, allocations: 4.359 kB / 376.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.003872, allocations: 384 / 376.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.956e-05/0.003912, allocations: 33.64 kB / 376.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.004043, allocations: 104.6 kB / 376.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.602e-05/0.004129, allocations: 60.73 kB / 376.9 MB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/0.004168, allocations: 33.39 kB / 377 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.004177, allocations: 0 / 377 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.508e-05/0.004242, allocations: 75.14 kB / 377 MB, free: 3.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.004243, allocations: 4 kB / 377 MB, free: 3.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002428/0.004486, allocations: 114.8 kB / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.004551, allocations: 77.11 kB / 377.2 MB, free: 2.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.805e-05/0.004639, allocations: 142.2 kB / 377.4 MB, free: 2.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.004657, allocations: 25.7 kB / 377.4 MB, free: 2.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.004731, allocations: 142.8 kB / 377.5 MB, free: 2.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.004748, allocations: 0 / 377.5 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.004783, allocations: 15.38 kB / 377.6 MB, free: 2.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002685/0.005051, allocations: 0.4883 MB / 378 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.677e-05/0.005078, allocations: 25.7 kB / 378.1 MB, free: 1.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.398e-05/0.005102, allocations: 29.83 kB / 378.1 MB, free: 1.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.953e-05/0.005171, allocations: 67.09 kB / 378.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005173, allocations: 0 / 378.2 MB, free: 1.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001165/0.00529, allocations: 93.03 kB / 378.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.005334, allocations: 35.58 kB / 378.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.005338, allocations: 0 / 378.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.005351, allocations: 0 / 378.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.005352, allocations: 0 / 378.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.005356, allocations: 0 / 378.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.605e-05/0.005372, allocations: 4.031 kB / 378.3 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.005384, allocations: 11.98 kB / 378.3 MB, free: 1.645 MB / 346.7 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.0001327/0.005517, allocations: 186.3 kB / 378.5 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.005531, allocations: 7.953 kB / 378.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.504e-06/0.005538, allocations: 3 kB / 378.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.00554, allocations: 0 / 378.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.005542, allocations: 0 / 378.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.005544, allocations: 0 / 378.5 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.005647, allocations: 116.6 kB / 378.6 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.005653, allocations: 3.984 kB / 378.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-07/0.005654, allocations: 0 / 378.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.005655, allocations: 4 kB / 378.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.005661, allocations: 0 / 378.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.005662, allocations: 0 / 378.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.005662, allocations: 0 / 378.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.005821, allocations: 143.7 kB / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-06/0.005826, allocations: 0 / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.005836, allocations: 0 / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.005844, allocations: 0 / 378.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.005861, allocations: 4 kB / 378.8 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.005864, allocations: 0 / 378.8 MB, free: 1.102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.129e-05/0.005925, allocations: 123.2 kB / 378.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.005926, allocations: 3.938 kB / 378.9 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002238/0.006149, allocations: 27.92 kB / 378.9 MB, free: 0.9492 MB / 346.7 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.001091/0.00724, allocations: 291 kB / 379.2 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.007403, allocations: 118.5 kB / 379.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.007405, allocations: 0 / 379.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.507e-05/0.00748, allocations: 96.72 kB / 379.4 MB, free: 488 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.007604, allocations: 4 kB / 379.4 MB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002452/0.007849, allocations: 113.8 kB / 379.5 MB, free: 332 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.784e-05/0.007907, allocations: 59.36 kB / 379.6 MB, free: 252 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.649e-06/0.007912, allocations: 0 / 379.6 MB, free: 252 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.007927, allocations: 8.5 kB / 379.6 MB, free: 244 kB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.007928, allocations: 0 / 379.6 MB, free: 244 kB / 346.7 MB Notification: Performance of Templates: time 0.004133/0.01206, allocations: 0.8326 MB / 380.4 MB, free: 15.41 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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: 4.899547326029278]