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.001156/0.001156, allocations: 77.97 kB / 21.42 MB, free: 3.07 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.0106/0.0106, allocations: 170 kB / 24.82 MB, free: 9.273 MB / 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.048/1.048, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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.3015/0.3015, allocations: 32.81 MB / 294.6 MB, free: 1.223 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.723e-06/1.723e-06, allocations: 0 / 376.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.794e-05, allocations: 6.25 kB / 376.4 MB, free: 4.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001222/0.00125, allocations: 0.4931 MB / 376.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004517/0.001701, allocations: 259.3 kB / 377.2 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.477e-05/0.001726, allocations: 0 / 377.2 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.605e-05/0.001742, allocations: 0 / 377.2 MB, free: 3.688 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.001749, allocations: 0 / 377.2 MB, free: 3.688 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.0003077/0.002056, allocations: 63.67 kB / 377.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.877e-05/0.002105, allocations: 4 kB / 377.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.00214, allocations: 4 kB / 377.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.909e-05/0.002169, allocations: 0 / 377.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.895e-05/0.002198, allocations: 0 / 377.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.002209, allocations: 0 / 377.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.002333, allocations: 59.89 kB / 377.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-06/0.002341, allocations: 4 kB / 377.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.539e-05/0.002357, allocations: 3.984 kB / 377.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.002469, allocations: 71.73 kB / 377.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.002471, allocations: 0 / 377.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.002472, allocations: 0 / 377.4 MB, free: 3.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.002476, allocations: 0 / 377.4 MB, free: 3.48 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.0002596/0.002736, allocations: 385.9 kB / 377.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.002774, allocations: 8.031 kB / 377.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.691e-05/0.002801, allocations: 0.9375 kB / 377.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.048e-05/0.002862, allocations: 108.6 kB / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.002872, allocations: 384 / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-06/0.002877, allocations: 384 / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.721e-05/0.002954, allocations: 59.95 kB / 377.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.002961, allocations: 192 / 377.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-06/0.002967, allocations: 384 / 377.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.002972, allocations: 4.312 kB / 378 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.905e-05/0.002991, allocations: 37.62 kB / 378 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.398e-05/0.003065, allocations: 97.27 kB / 378.1 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.952e-05/0.003105, allocations: 64.78 kB / 378.1 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.663e-05/0.003121, allocations: 37.38 kB / 378.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-06/0.003125, allocations: 0 / 378.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.003158, allocations: 63.16 kB / 378.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 5.92e-07/0.003158, allocations: 0 / 378.2 MB, free: 2.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001412/0.003299, allocations: 118.7 kB / 378.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.003333, allocations: 81.11 kB / 378.4 MB, free: 2.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.288e-05/0.003376, allocations: 146.2 kB / 378.6 MB, free: 2.078 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.216e-06/0.003384, allocations: 25.83 kB / 378.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.003419, allocations: 130.9 kB / 378.7 MB, free: 1.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.003438, allocations: 4.344 kB / 378.7 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.003462, allocations: 15.38 kB / 378.8 MB, free: 1.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.003572, allocations: 496.1 kB / 379.2 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.651e-05/0.003588, allocations: 29.7 kB / 379.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.197e-05/0.0036, allocations: 25.7 kB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.387e-05/0.003644, allocations: 71.02 kB / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.003646, allocations: 0 / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.393e-05/0.00371, allocations: 93.16 kB / 379.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.003736, allocations: 33.7 kB / 379.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.003742, allocations: 0 / 379.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.003752, allocations: 0 / 379.5 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.833e-06/0.003754, allocations: 7.984 kB / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.916e-06/0.003757, allocations: 0 / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.424e-05/0.003771, allocations: 0 / 379.5 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.003777, allocations: 0 / 379.5 MB, free: 1.082 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 6.847e-05/0.003845, allocations: 186.2 kB / 379.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-06/0.00385, allocations: 0 / 379.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.194e-05/0.003861, allocations: 3 kB / 379.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.003863, allocations: 4 kB / 379.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.003865, allocations: 4 kB / 379.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.003867, allocations: 0 / 379.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.637e-05/0.003924, allocations: 101.2 kB / 379.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.003925, allocations: 4 kB / 379.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.003926, allocations: 0 / 379.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.32e-07/0.003927, allocations: 3.938 kB / 379.8 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.003931, allocations: 4 kB / 379.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4e-07/0.003932, allocations: 0 / 379.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.003933, allocations: 0 / 379.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.361e-05/0.004026, allocations: 135.8 kB / 379.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.829e-06/0.004031, allocations: 0 / 379.9 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.004042, allocations: 4 kB / 379.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.93e-06/0.004047, allocations: 0 / 379.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-06/0.004055, allocations: 0 / 379.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.004056, allocations: 3.938 kB / 379.9 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.137e-05/0.004088, allocations: 119.2 kB / 380.1 MB, free: 456 kB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004088, allocations: 0 / 380.1 MB, free: 456 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001706/0.004258, allocations: 27.92 kB / 380.1 MB, free: 428 kB / 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.0005922/0.004851, allocations: 302.4 kB / 380.4 MB, free: 204 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.556e-05/0.004946, allocations: 126.4 kB / 380.5 MB, free: 48 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.004948, allocations: 0 / 380.5 MB, free: 48 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.101e-05/0.004989, allocations: 92.78 kB / 380.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.828e-05/0.005077, allocations: 3.938 kB / 380.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001443/0.005221, allocations: 113.7 kB / 380.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.704e-05/0.005248, allocations: 55.34 kB / 380.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.005253, allocations: 4 kB / 380.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.005288, allocations: 70.2 kB / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.005289, allocations: 128 / 380.8 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Templates: time 0.002504/0.007793, allocations: 0.9392 MB / 381.8 MB, free: 14.7 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","",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.1579716219566762]