Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00103/0.00103, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001148/0.001148, allocations: 165 kB / 24.56 MB, free: 16 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.011/1.011, allocations: 177.1 MB / 205 MB, free: 5.277 MB / 186.7 MB " [Timeout remaining time 179] 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.2569/0.2569, allocations: 34.26 MB / 295.7 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 378 MB, free: 2.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.482e-05, allocations: 5.406 kB / 378 MB, free: 2.707 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001245/0.00127, allocations: 497 kB / 378.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005039/0.001774, allocations: 259.3 kB / 378.7 MB, free: 1.965 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.03e-05/0.001794, allocations: 4 kB / 378.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.00181, allocations: 0 / 378.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.698e-06/0.001815, allocations: 0 / 378.8 MB, free: 1.961 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0002757/0.002091, allocations: 59.58 kB / 378.8 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.248e-05/0.002133, allocations: 4 kB / 378.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.584e-05/0.002159, allocations: 0 / 378.8 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.438e-05/0.002183, allocations: 11.98 kB / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.018e-05/0.002204, allocations: 0 / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-06/0.002212, allocations: 0 / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.002337, allocations: 63.88 kB / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.252e-06/0.002343, allocations: 0 / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.74e-05/0.002361, allocations: 0 / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.002471, allocations: 63.86 kB / 379 MB, free: 1.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.002473, allocations: 0 / 379 MB, free: 1.762 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.002474, allocations: 0 / 379 MB, free: 1.762 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.002478, allocations: 0 / 379 MB, free: 1.762 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.0002625/0.00274, allocations: 385.9 kB / 379.3 MB, free: 1.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.002775, allocations: 16.03 kB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.002807, allocations: 0.9375 kB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.744e-05/0.002864, allocations: 108.6 kB / 379.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.002875, allocations: 4.312 kB / 379.5 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.824e-06/0.002883, allocations: 4.375 kB / 379.5 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.63e-05/0.002959, allocations: 51.97 kB / 379.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.002966, allocations: 192 / 379.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.002972, allocations: 384 / 379.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.002981, allocations: 4.375 kB / 379.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.728e-05/0.002998, allocations: 29.64 kB / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.531e-05/0.003083, allocations: 116.6 kB / 379.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.324e-05/0.003127, allocations: 60.7 kB / 379.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.916e-05/0.003146, allocations: 37.48 kB / 379.8 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-06/0.003149, allocations: 4 kB / 379.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.003182, allocations: 59.09 kB / 379.8 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.603e-06/0.003184, allocations: 3.984 kB / 379.8 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.003339, allocations: 118.8 kB / 379.9 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.003377, allocations: 81.11 kB / 380 MB, free: 500 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.953e-05/0.003416, allocations: 142.2 kB / 380.2 MB, free: 344 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.003425, allocations: 25.7 kB / 380.2 MB, free: 312 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.683e-05/0.003452, allocations: 131 kB / 380.3 MB, free: 176 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.003465, allocations: 352 / 380.3 MB, free: 176 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.003488, allocations: 19.38 kB / 380.3 MB, free: 148 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.003616, allocations: 0.4962 MB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.058e-05/0.003637, allocations: 25.7 kB / 380.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.383e-05/0.00365, allocations: 29.7 kB / 380.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.003692, allocations: 59.09 kB / 380.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.003694, allocations: 4 kB / 380.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.329e-05/0.003757, allocations: 93.05 kB / 381 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.003782, allocations: 37.8 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.003786, allocations: 3.938 kB / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.003798, allocations: 0 / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.988e-06/0.003802, allocations: 0 / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.003807, allocations: 0 / 381.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.222e-05/0.00382, allocations: 7.875 kB / 381.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.003826, allocations: 4 kB / 381.1 MB, free: 15.32 MB / 362.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 6.85e-05/0.003894, allocations: 178.3 kB / 381.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.689e-06/0.003904, allocations: 11.98 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.905e-06/0.003912, allocations: 3 kB / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.003914, allocations: 0 / 381.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.003917, allocations: 4 kB / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.003919, allocations: 0 / 381.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.247e-05/0.003971, allocations: 112.6 kB / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.003972, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.003973, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.003975, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.003981, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.02e-07/0.003982, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.003983, allocations: 0 / 381.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.97e-05/0.004072, allocations: 135.8 kB / 381.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-06/0.004077, allocations: 4.031 kB / 381.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.00409, allocations: 7.922 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.568e-06/0.004094, allocations: 0 / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.004107, allocations: 4 kB / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-06/0.004109, allocations: 0 / 381.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.193e-05/0.004141, allocations: 119.2 kB / 381.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004141, allocations: 0 / 381.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001567/0.004298, allocations: 23.94 kB / 381.7 MB, free: 14.64 MB / 362.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.0005105/0.004808, allocations: 311.3 kB / 382 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.896e-05/0.004907, allocations: 126.5 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.00491, allocations: 4 kB / 382.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.1e-05/0.004941, allocations: 84.8 kB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.353e-05/0.005024, allocations: 4 kB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001739/0.005198, allocations: 121.6 kB / 382.3 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.992e-05/0.005228, allocations: 55.3 kB / 382.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.005233, allocations: 0 / 382.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.452e-05/0.005247, allocations: 12.5 kB / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.005248, allocations: 0 / 382.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of Templates: time 0.002617/0.007865, allocations: 0.9305 MB / 383.3 MB, free: 12.98 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1329578831791878]