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.0009829/0.0009829, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009478/0.0009478, allocations: 170.3 kB / 24.91 MB, free: 8.723 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 0.9766/0.9766, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.2576/0.2576, allocations: 34.25 MB / 296.1 MB, free: 0.6875 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.533e-06/1.533e-06, allocations: 0 / 325.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.614e-05/2.767e-05, allocations: 3.297 kB / 325.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001128/0.001156, allocations: 496.9 kB / 325.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004689/0.001625, allocations: 259.1 kB / 326 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.831e-05/0.001643, allocations: 0 / 326 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.001655, allocations: 4 kB / 326 MB, free: 7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.493e-06/0.001662, allocations: 0 / 326 MB, free: 7 MB / 298.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.0002832/0.001945, allocations: 59.62 kB / 326 MB, free: 6.941 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.423e-05/0.001999, allocations: 3.984 kB / 326 MB, free: 6.938 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.728e-05/0.002036, allocations: 4 kB / 326 MB, free: 6.934 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.965e-05/0.002066, allocations: 4 kB / 326 MB, free: 6.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.062e-05/0.002097, allocations: 4 kB / 326 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.002108, allocations: 0 / 326 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.002253, allocations: 59.89 kB / 326.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.919e-06/0.002263, allocations: 3.984 kB / 326.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.873e-05/0.002282, allocations: 0 / 326.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.00241, allocations: 72.42 kB / 326.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.002412, allocations: 0 / 326.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.002413, allocations: 0 / 326.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.002418, allocations: 0 / 326.2 MB, free: 6.793 MB / 298.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.0002247/0.002642, allocations: 254.3 kB / 326.4 MB, free: 6.512 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.002679, allocations: 12.03 kB / 326.4 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.012e-05/0.002699, allocations: 4.938 kB / 326.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.519e-05/0.002755, allocations: 101.8 kB / 326.5 MB, free: 6.371 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.002765, allocations: 8.312 kB / 326.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-06/0.002773, allocations: 384 / 326.5 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.883e-05/0.002842, allocations: 55.95 kB / 326.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.002849, allocations: 8.172 kB / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-06/0.002855, allocations: 384 / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.002859, allocations: 384 / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.002876, allocations: 29.64 kB / 326.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.38e-05/0.002939, allocations: 65.05 kB / 326.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.355e-05/0.002983, allocations: 52.22 kB / 326.7 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.031e-05/0.003003, allocations: 34.66 kB / 326.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-06/0.003007, allocations: 3.938 kB / 326.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.00304, allocations: 60.25 kB / 326.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.7e-07/0.00304, allocations: 0 / 326.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000102/0.003142, allocations: 110.8 kB / 327 MB, free: 5.855 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.003175, allocations: 77.11 kB / 327 MB, free: 5.762 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.972e-05/0.003205, allocations: 89.86 kB / 327.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-06/0.003214, allocations: 25.7 kB / 327.1 MB, free: 5.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.927e-05/0.003233, allocations: 84.14 kB / 327.2 MB, free: 5.547 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.00325, allocations: 9.484 kB / 327.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.003269, allocations: 17.66 kB / 327.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.427e-05/0.003344, allocations: 322.8 kB / 327.6 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.321e-05/0.003357, allocations: 25.7 kB / 327.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.278e-05/0.00337, allocations: 25.7 kB / 327.6 MB, free: 5.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.768e-05/0.003407, allocations: 60.27 kB / 327.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.003409, allocations: 0 / 327.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.089e-05/0.00346, allocations: 89.09 kB / 327.8 MB, free: 4.949 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.003484, allocations: 29.7 kB / 327.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.003489, allocations: 4.094 kB / 327.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.936e-06/0.003498, allocations: 0 / 327.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-06/0.003501, allocations: 0 / 327.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.003506, allocations: 7.938 kB / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.167e-05/0.003518, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.003523, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.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.247e-05/0.003585, allocations: 143.5 kB / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-06/0.003589, allocations: 0 / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-06/0.003598, allocations: 3 kB / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.003599, allocations: 0 / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-06/0.0036, allocations: 0 / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.003603, allocations: 4 kB / 327.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.4e-05/0.003647, allocations: 65.84 kB / 328 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.003647, allocations: 0 / 328 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-07/0.003647, allocations: 0 / 328 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.003649, allocations: 3.984 kB / 328 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.003654, allocations: 4 kB / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.003654, allocations: 4 kB / 328 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.003655, allocations: 0 / 328 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.645e-05/0.003722, allocations: 116.4 kB / 328.1 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-06/0.003726, allocations: 4.281 kB / 328.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.003739, allocations: 8.031 kB / 328.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.97e-06/0.003744, allocations: 0 / 328.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.204e-05/0.003756, allocations: 0 / 328.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.003759, allocations: 4 kB / 328.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.923e-06/0.003766, allocations: 4.859 kB / 328.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003766, allocations: 0 / 328.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001313/0.003897, allocations: 27.92 kB / 328.2 MB, free: 4.453 MB / 298.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.0005949/0.004492, allocations: 328.3 kB / 328.5 MB, free: 4.262 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.13e-05/0.004584, allocations: 124.2 kB / 328.6 MB, free: 4.113 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.004586, allocations: 0 / 328.6 MB, free: 4.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.855e-05/0.004614, allocations: 89.95 kB / 328.7 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.698e-05/0.004661, allocations: 10.59 kB / 328.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001412/0.004803, allocations: 112.5 kB / 328.8 MB, free: 3.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.989e-05/0.004832, allocations: 55.34 kB / 328.9 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.708e-06/0.004837, allocations: 0 / 328.9 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.004871, allocations: 51.38 kB / 328.9 MB, free: 3.727 MB / 298.7 MB Notification: Performance of SimCode: time 7.02e-07/0.004872, allocations: 0 / 328.9 MB, free: 3.727 MB / 298.7 MB Notification: Performance of Templates: time 0.002376/0.007248, allocations: 0.933 MB / 329.9 MB, free: 2.801 MB / 298.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: 2.8869650061242282]