Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001304/0.001304, allocations: 174.2 kB / 17.36 MB, free: 4.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006989/0.000699, allocations: 89.11 kB / 272.1 MB, free: 8.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002147/0.0002147, allocations: 7.984 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1881, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01187/0.2, allocations: 15.55 MB / 392.1 MB, free: 32.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009869/0.2099, allocations: 17.16 MB / 409.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.2101, allocations: 4 kB / 409.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.2104, allocations: 59.69 kB / 409.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.2106, allocations: 83.48 kB / 409.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00927/0.2199, allocations: 4.004 MB / 413.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2202, allocations: 262.9 kB / 413.7 MB, free: 9.359 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.479e-05/0.2202, allocations: 13.45 kB / 413.7 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003437/0.2206, allocations: 195.3 kB / 413.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.823e-05/0.2207, allocations: 83.67 kB / 414 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.2207, allocations: 4 kB / 414 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009308/0.23, allocations: 6.649 MB / 420.6 MB, free: 2.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.985e-05/0.2301, allocations: 19.92 kB / 420.7 MB, free: 2.391 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.743e-05/0.2302, allocations: 97.42 kB / 420.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.2362, allocations: 3.863 MB / 424.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2362, allocations: 0 / 424.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2362, allocations: 0 / 424.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2362, allocations: 0 / 424.6 MB, free: 14.42 MB / 314.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.003845/0.2401, allocations: 1.115 MB / 425.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2401, allocations: 8.031 kB / 425.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004273/0.2405, allocations: 56.7 kB / 425.8 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.2408, allocations: 216.2 kB / 426 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.2408, allocations: 8.375 kB / 426 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.2409, allocations: 24.38 kB / 426 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.242, allocations: 384 kB / 426.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.242, allocations: 4 kB / 426.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.2421, allocations: 8 kB / 426.4 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.2421, allocations: 4 kB / 426.4 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.2434, allocations: 367.5 kB / 426.8 MB, free: 12.13 MB / 314.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.001231/0.2446, allocations: 1.191 MB / 428 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007465/0.2454, allocations: 289.5 kB / 428.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.2456, allocations: 118.9 kB / 428.4 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08622/0.3319, allocations: 47.88 MB / 476.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.3319, allocations: 38.56 kB / 476.3 MB, free: 4.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.332, allocations: 0 / 476.3 MB, free: 4.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.006334/0.3383, allocations: 1.625 MB / 477.9 MB, free: 3.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.3384, allocations: 114.7 kB / 478 MB, free: 3.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.577e-05/0.3385, allocations: 125.7 kB / 478.2 MB, free: 2.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.3385, allocations: 33.77 kB / 478.2 MB, free: 2.859 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.3386, allocations: 100.6 kB / 478.3 MB, free: 2.758 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.621e-05/0.3387, allocations: 122.3 kB / 478.4 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/0.3387, allocations: 4 kB / 478.4 MB, free: 2.633 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3388, allocations: 326.8 kB / 478.7 MB, free: 2.305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.3392, allocations: 139.7 kB / 478.9 MB, free: 2.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.3396, allocations: 198.6 kB / 479.1 MB, free: 1.949 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007383/0.3403, allocations: 354.6 kB / 479.4 MB, free: 1.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3403, allocations: 4 kB / 479.4 MB, free: 1.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001014/0.3414, allocations: 437.9 kB / 479.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3414, allocations: 4 kB / 479.9 MB, free: 1.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3414, allocations: 4 kB / 479.9 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/0.3416, allocations: 36.83 kB / 479.9 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.3421, allocations: 96.03 kB / 480 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003583/0.3425, allocations: 0.5484 MB / 480.5 MB, free: 432 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.3428, allocations: 27.91 kB / 480.6 MB, free: 404 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.3428, allocations: 16 kB / 480.6 MB, free: 388 kB / 362.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,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.000139/0.343, allocations: 133.9 kB / 480.7 MB, free: 244 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.3431, allocations: 19.8 kB / 480.7 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002055/0.3451, allocations: 1.465 MB / 482.2 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.664e-05/0.3452, allocations: 27.95 kB / 482.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3452, allocations: 7.938 kB / 482.2 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3452, allocations: 8.016 kB / 482.2 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.348, allocations: 1.99 MB / 484.2 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.348, allocations: 0 / 484.2 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004268/0.3484, allocations: 87.86 kB / 484.3 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003383/0.3488, allocations: 72.77 kB / 484.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.3488, allocations: 19.98 kB / 484.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003265/0.3492, allocations: 0.5838 MB / 485 MB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.3492, allocations: 4.031 kB / 485 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.3513, allocations: 1.701 MB / 486.7 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-05/0.3514, allocations: 128.5 kB / 486.8 MB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.3514, allocations: 15.94 kB / 486.8 MB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/0.3518, allocations: 27.95 kB / 486.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.3519, allocations: 35.89 kB / 486.9 MB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.3519, allocations: 8 kB / 486.9 MB, free: 9.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.842e-05/0.352, allocations: 91.27 kB / 487 MB, free: 9.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.352, allocations: 4 kB / 487 MB, free: 9.789 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002442/0.3544, allocations: 0.9566 MB / 488 MB, free: 8.832 MB / 378.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.004026/0.3585, allocations: 1.14 MB / 489.1 MB, free: 7.684 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.3596, allocations: 0.601 MB / 489.7 MB, free: 7.082 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3596, allocations: 0 / 489.7 MB, free: 7.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00074/0.3604, allocations: 0.5245 MB / 490.2 MB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.3611, allocations: 75.88 kB / 490.3 MB, free: 6.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.3634, allocations: 1.568 MB / 491.9 MB, free: 4.867 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.3637, allocations: 0.8178 MB / 492.7 MB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003948/0.3641, allocations: 141.7 kB / 492.8 MB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.3642, allocations: 39.41 kB / 492.9 MB, free: 3.848 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3643, allocations: 0 / 492.9 MB, free: 3.848 MB / 378.7 MB Notification: Performance of Templates: time 0.1752/0.5395, allocations: 35.88 MB / 0.5163 GB, free: 122.8 MB / 394.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches