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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 110.9 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 58.44 kB / 302 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.09932, allocations: 49.44 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01668/0.1161, allocations: 12.9 MB / 364.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1699/0.286, allocations: 11.54 MB / 375.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.2861, allocations: 5.031 kB / 375.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.2865, allocations: 72.56 kB / 376 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000252/0.2868, allocations: 83.25 kB / 376.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01311/0.2999, allocations: 5.071 MB / 381.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.3003, allocations: 230.9 kB / 381.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.756e-05/0.3003, allocations: 13.23 kB / 381.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.3007, allocations: 199.6 kB / 381.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.3009, allocations: 73.22 kB / 381.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.3009, allocations: 8.531 kB / 381.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0136/0.3145, allocations: 6.985 MB / 388.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.204e-05/0.3146, allocations: 30.47 kB / 388.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.3148, allocations: 71.34 kB / 388.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.3249, allocations: 3.868 MB / 392.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3249, allocations: 0 / 392.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3249, allocations: 0 / 392.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.3249, allocations: 0 / 392.6 MB, free: 5.188 MB / 302.1 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.004851/0.3298, allocations: 1.137 MB / 393.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.3298, allocations: 9.625 kB / 393.8 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004723/0.3303, allocations: 54.95 kB / 393.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.3306, allocations: 224.5 kB / 394 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.3306, allocations: 14.16 kB / 394 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.3307, allocations: 18.09 kB / 394.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.3318, allocations: 386.3 kB / 394.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.3318, allocations: 1.375 kB / 394.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.3319, allocations: 6.75 kB / 394.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3319, allocations: 2.75 kB / 394.5 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.3331, allocations: 362.4 kB / 394.8 MB, free: 3.656 MB / 302.1 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.001101/0.3343, allocations: 1.185 MB / 396 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.335, allocations: 285.9 kB / 396.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.3353, allocations: 110.2 kB / 396.4 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09059/0.4259, allocations: 47.66 MB / 444 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.426, allocations: 38.56 kB / 444.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.144e-06/0.426, allocations: 4 kB / 444.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006751/0.4327, allocations: 1.585 MB / 445.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.4328, allocations: 110.8 kB / 445.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.769e-05/0.4329, allocations: 117.9 kB / 445.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.4329, allocations: 33.7 kB / 445.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.433, allocations: 108.4 kB / 446 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.589e-05/0.4331, allocations: 118.3 kB / 446.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4332, allocations: 65.59 kB / 446.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4333, allocations: 326.8 kB / 446.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/0.4337, allocations: 135.9 kB / 446.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.4341, allocations: 200.3 kB / 446.9 MB, free: 12.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007659/0.4349, allocations: 346.6 kB / 447.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4349, allocations: 3.938 kB / 447.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001031/0.436, allocations: 426 kB / 447.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.436, allocations: 8 kB / 447.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.436, allocations: 0 / 447.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002278/0.4362, allocations: 40.83 kB / 447.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004723/0.4367, allocations: 88.03 kB / 447.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003675/0.4371, allocations: 0.553 MB / 448.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.4374, allocations: 19.98 kB / 448.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.4374, allocations: 19.98 kB / 448.3 MB, free: 10.52 MB / 366.1 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,state.phase,state2.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 0.0001403/0.4376, allocations: 145.8 kB / 448.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4377, allocations: 11.91 kB / 448.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/0.4397, allocations: 1.437 MB / 449.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/0.4398, allocations: 27.94 kB / 450 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4398, allocations: 7.938 kB / 450 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4398, allocations: 4 kB / 450 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.4426, allocations: 1.972 MB / 451.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4426, allocations: 0 / 451.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.443, allocations: 88 kB / 452 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.4434, allocations: 72.69 kB / 452.1 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.4434, allocations: 8 kB / 452.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003294/0.4437, allocations: 0.5837 MB / 452.7 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.4437, allocations: 11.81 kB / 452.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.4458, allocations: 1.686 MB / 454.4 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.533e-05/0.4459, allocations: 124.4 kB / 454.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.925e-05/0.446, allocations: 23.97 kB / 454.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.4464, allocations: 15.98 kB / 454.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.4464, allocations: 35.89 kB / 454.6 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.4465, allocations: 19.98 kB / 454.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.669e-05/0.4465, allocations: 87.28 kB / 454.7 MB, free: 4.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4465, allocations: 4 kB / 454.7 MB, free: 4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002883/0.4494, allocations: 0.9527 MB / 455.6 MB, free: 3.047 MB / 366.1 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.003618/0.4531, allocations: 1.13 MB / 456.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.4544, allocations: 0.6166 MB / 457.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4545, allocations: 7.938 kB / 457.4 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008069/0.4553, allocations: 0.5085 MB / 457.9 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.4561, allocations: 80.98 kB / 458 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.4585, allocations: 1.306 MB / 459.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.459, allocations: 0.8217 MB / 460.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.4593, allocations: 133.8 kB / 460.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.4595, allocations: 31.42 kB / 460.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4595, allocations: 0 / 460.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of Templates: time 0.04535/0.5049, allocations: 36.18 MB / 496.4 MB, free: 10.29 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches