Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001076/0.001077, allocations: 107.3 kB / 18.36 MB, free: 4.758 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.0009976/0.0009977, allocations: 184.1 kB / 19.29 MB, free: 3.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.1 MB / 225.2 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 51.92 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07776/0.07899, allocations: 46.62 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01415/0.09317, allocations: 12.91 MB / 341.6 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01242/0.1056, allocations: 11.54 MB / 353.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.1058, allocations: 4 kB / 353.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002984/0.1061, allocations: 71.55 kB / 353.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.1064, allocations: 87.42 kB / 353.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01201/0.1184, allocations: 5.058 MB / 358.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.1187, allocations: 223 kB / 358.6 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.628e-05/0.1188, allocations: 17.44 kB / 358.6 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.1192, allocations: 199.3 kB / 358.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.1193, allocations: 67.77 kB / 358.9 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.1194, allocations: 8 kB / 358.9 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01229/0.1317, allocations: 6.989 MB / 365.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.843e-05/0.1318, allocations: 31.91 kB / 365.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1319, allocations: 71.66 kB / 366 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007416/0.1393, allocations: 3.86 MB / 369.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1393, allocations: 0 / 369.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1393, allocations: 0 / 369.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1394, allocations: 0 / 369.8 MB, free: 10.52 MB / 318.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.004379/0.1437, allocations: 1.146 MB / 371 MB, free: 9.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.1438, allocations: 8.031 kB / 371 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/0.1443, allocations: 52.8 kB / 371 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.1446, allocations: 224.1 kB / 371.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.1446, allocations: 16.31 kB / 371.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.1447, allocations: 16.31 kB / 371.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.1459, allocations: 380 kB / 371.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.146, allocations: 4 kB / 371.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.146, allocations: 4 kB / 371.7 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.146, allocations: 4 kB / 371.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1474, allocations: 359.5 kB / 372 MB, free: 8.215 MB / 318.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.001322/0.1487, allocations: 1.191 MB / 373.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.1495, allocations: 283.7 kB / 373.5 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.1498, allocations: 110.9 kB / 373.6 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2173/0.3671, allocations: 47.64 MB / 421.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.3671, allocations: 45.42 kB / 421.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.875e-06/0.3672, allocations: 1.078 kB / 421.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006183/0.3733, allocations: 1.577 MB / 422.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.3734, allocations: 106.8 kB / 423 MB, free: 1.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.605e-05/0.3735, allocations: 117.8 kB / 423.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.3735, allocations: 33.33 kB / 423.1 MB, free: 1.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.3735, allocations: 107.3 kB / 423.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.3736, allocations: 121.7 kB / 423.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.995e-05/0.3737, allocations: 70.97 kB / 423.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.046e-05/0.3738, allocations: 326.1 kB / 423.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.3741, allocations: 133 kB / 423.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.3744, allocations: 205.7 kB / 424.1 MB, free: 468 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/0.3751, allocations: 344.5 kB / 424.4 MB, free: 220 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3751, allocations: 4 kB / 424.4 MB, free: 216 kB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009558/0.3761, allocations: 429.8 kB / 424.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3761, allocations: 8 kB / 424.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.3761, allocations: 4 kB / 424.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/0.3764, allocations: 32.7 kB / 424.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004908/0.3769, allocations: 87.94 kB / 424.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003584/0.3772, allocations: 0.5498 MB / 425.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3775, allocations: 27.25 kB / 425.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.3776, allocations: 12.55 kB / 425.5 MB, free: 15.2 MB / 334.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.0001391/0.3777, allocations: 135 kB / 425.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.3778, allocations: 19.75 kB / 425.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.3797, allocations: 1.447 MB / 427.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.3798, allocations: 31.17 kB / 427.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3798, allocations: 4 kB / 427.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3798, allocations: 0 / 427.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.3824, allocations: 1.974 MB / 429.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.3825, allocations: 4 kB / 429.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/0.3829, allocations: 78.97 kB / 429.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003032/0.3832, allocations: 77.94 kB / 429.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.3833, allocations: 11.75 kB / 429.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003278/0.3836, allocations: 0.5876 MB / 429.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3836, allocations: 4.031 kB / 429.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.3856, allocations: 1.688 MB / 431.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.812e-05/0.3857, allocations: 136.2 kB / 431.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.3857, allocations: 11.91 kB / 431.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.3861, allocations: 19.23 kB / 431.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.3862, allocations: 38.33 kB / 431.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.3862, allocations: 19.92 kB / 431.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.615e-05/0.3863, allocations: 86.97 kB / 431.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3863, allocations: 0 / 431.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002287/0.3886, allocations: 0.9567 MB / 432.9 MB, free: 9.641 MB / 334.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.003365/0.392, allocations: 1.128 MB / 434 MB, free: 8.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.3933, allocations: 0.6163 MB / 434.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3933, allocations: 4 kB / 434.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007561/0.3941, allocations: 0.5151 MB / 435.1 MB, free: 7.617 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007238/0.3948, allocations: 77.16 kB / 435.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.397, allocations: 1.302 MB / 436.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.3974, allocations: 0.8178 MB / 437.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003131/0.3977, allocations: 131.5 kB / 437.4 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.3978, allocations: 43.41 kB / 437.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3979, allocations: 3.844 kB / 437.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of Templates: time 0.0452/0.4431, allocations: 36.17 MB / 473.7 MB, free: 1.062 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches