Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009186/0.0009186, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008727/0.0008727, allocations: 142.1 kB / 24.89 MB, free: 8.777 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8657/0.8657, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 268.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.104e-05, allocations: 2.312 kB / 268.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02008/0.0201, allocations: 12.9 MB / 281.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1163/0.1364, allocations: 11.23 MB / 292.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.1365, allocations: 1 kB / 292.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.1367, allocations: 62.25 kB / 292.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.137, allocations: 93.58 kB / 292.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009379/0.1464, allocations: 5.125 MB / 297.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.1467, allocations: 243.8 kB / 298.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.224e-05/0.1467, allocations: 7.609 kB / 298.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.147, allocations: 219 kB / 298.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.282e-05/0.1471, allocations: 57.92 kB / 298.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.1471, allocations: 7.75 kB / 298.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008598/0.1557, allocations: 6.688 MB / 305 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.839e-05/0.1558, allocations: 28.42 kB / 305.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.201e-05/0.1559, allocations: 52.44 kB / 305.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004549/0.1604, allocations: 4.961 MB / 310.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1604, allocations: 0 / 310.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1604, allocations: 0 / 310.1 MB, free: 9.707 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1604, allocations: 0 / 310.1 MB, free: 9.707 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001881/0.1623, allocations: 0.9809 MB / 311.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.1623, allocations: 10.23 kB / 311.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.1626, allocations: 81.61 kB / 311.2 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1627, allocations: 145.2 kB / 311.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1627, allocations: 20.53 kB / 311.3 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.1628, allocations: 19.05 kB / 311.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.1632, allocations: 396.6 kB / 311.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1632, allocations: 3.656 kB / 311.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1633, allocations: 9.969 kB / 311.7 MB, free: 8.555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.1633, allocations: 3.438 kB / 311.7 MB, free: 8.555 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.1636, allocations: 219.5 kB / 312 MB, free: 8.48 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.1641, allocations: 0.9029 MB / 312.9 MB, free: 7.664 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.1644, allocations: 226.1 kB / 313.1 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.19e-05/0.1645, allocations: 61.94 kB / 313.1 MB, free: 7.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1063/0.2707, allocations: 67.22 MB / 380.4 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.2708, allocations: 38.56 kB / 380.4 MB, free: 4.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.2708, allocations: 0 / 380.4 MB, free: 4.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002736/0.2735, allocations: 1.209 MB / 381.6 MB, free: 3.641 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2735, allocations: 106.8 kB / 381.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.887e-05/0.2736, allocations: 129.4 kB / 381.8 MB, free: 3.379 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.2736, allocations: 29.7 kB / 381.9 MB, free: 3.344 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.2737, allocations: 111.7 kB / 382 MB, free: 3.234 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.2737, allocations: 120.3 kB / 382.1 MB, free: 3.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-05/0.2738, allocations: 67.39 kB / 382.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.2739, allocations: 335.4 kB / 382.5 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.493e-05/0.2739, allocations: 55.97 kB / 382.5 MB, free: 2.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.509e-05/0.274, allocations: 128.6 kB / 382.7 MB, free: 2.535 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.2742, allocations: 223.8 kB / 382.9 MB, free: 2.305 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2742, allocations: 0 / 382.9 MB, free: 2.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002615/0.2745, allocations: 246.2 kB / 383.1 MB, free: 2.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2745, allocations: 8 kB / 383.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2745, allocations: 3.969 kB / 383.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.2746, allocations: 28.83 kB / 383.2 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2748, allocations: 79.14 kB / 383.2 MB, free: 1.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001962/0.275, allocations: 0.5204 MB / 383.8 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.07e-05/0.2751, allocations: 20.16 kB / 383.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.2751, allocations: 15.98 kB / 383.8 MB, free: 1.375 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state2.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/0.2752, allocations: 144.8 kB / 383.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.48e-05/0.2752, allocations: 22.98 kB / 384 MB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006858/0.2759, allocations: 0.8807 MB / 384.8 MB, free: 352 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.2759, allocations: 15.97 kB / 384.9 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.2759, allocations: 4 kB / 384.9 MB, free: 332 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2759, allocations: 3.984 kB / 384.9 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.277, allocations: 1.073 MB / 385.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.277, allocations: 0 / 385.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.2772, allocations: 75.03 kB / 386 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000143/0.2774, allocations: 47.77 kB / 386.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.2774, allocations: 15.98 kB / 386.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001782/0.2776, allocations: 0.5312 MB / 386.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2776, allocations: 4 kB / 386.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.2782, allocations: 1.006 MB / 387.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.084e-05/0.2782, allocations: 62.38 kB / 387.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.2783, allocations: 11.98 kB / 387.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.2784, allocations: 8 kB / 387.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.2784, allocations: 35.92 kB / 387.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.2785, allocations: 15.98 kB / 387.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.539e-05/0.2785, allocations: 12.86 kB / 387.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2785, allocations: 0 / 387.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001889/0.2804, allocations: 0.9708 MB / 388.7 MB, free: 12.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002388/0.2827, allocations: 1.359 MB / 390.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.2832, allocations: 318.7 kB / 390.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.2832, allocations: 0 / 390.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.2834, allocations: 229.7 kB / 390.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.2838, allocations: 88.5 kB / 390.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.2851, allocations: 1.028 MB / 391.7 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.424e-05/0.2852, allocations: 126.8 kB / 391.9 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.2853, allocations: 132.8 kB / 392 MB, free: 9.262 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.2855, allocations: 127.2 kB / 392.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2855, allocations: 0 / 392.1 MB, free: 9.137 MB / 346.7 MB Notification: Performance of Templates: time 0.1656/0.4511, allocations: 41.43 MB / 433.6 MB, free: 123.5 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.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: 4.1765048541128635]