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.001332/0.001332, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.00147/0.001471, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 47.02 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.08908, allocations: 49.44 MB / 350 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01561/0.1047, allocations: 12.9 MB / 362.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1769/0.2817, allocations: 11.54 MB / 374.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.2819, allocations: 1.219 kB / 374.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.2823, allocations: 73.14 kB / 374.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003244/0.2827, allocations: 85.59 kB / 374.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01469/0.2974, allocations: 5.072 MB / 379.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.2978, allocations: 234.5 kB / 379.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.334e-05/0.2979, allocations: 8.516 kB / 379.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003927/0.2983, allocations: 196.1 kB / 380.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.2984, allocations: 70.64 kB / 380.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.2984, allocations: 7.938 kB / 380.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01305/0.3115, allocations: 6.829 MB / 387 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.247e-05/0.3116, allocations: 25.3 kB / 387.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.3117, allocations: 71.77 kB / 387.1 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009082/0.3208, allocations: 3.879 MB / 391 MB, free: 5.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3209, allocations: 0 / 391 MB, free: 5.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3209, allocations: 3.938 kB / 391 MB, free: 5.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3209, allocations: 4 kB / 391 MB, free: 5.02 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.005173/0.3261, allocations: 1.134 MB / 392.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3262, allocations: 9.656 kB / 392.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004837/0.3266, allocations: 54.95 kB / 392.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.3268, allocations: 216 kB / 392.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.3269, allocations: 14.84 kB / 392.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.3269, allocations: 22.3 kB / 392.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.3281, allocations: 386 kB / 392.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3282, allocations: 1.375 kB / 392.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.3282, allocations: 5.375 kB / 392.8 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3282, allocations: 12.02 kB / 392.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3296, allocations: 358.4 kB / 393.2 MB, free: 3.492 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.00119/0.3308, allocations: 1.189 MB / 394.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008329/0.3316, allocations: 280.3 kB / 394.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.3319, allocations: 117.5 kB / 394.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1009/0.4329, allocations: 47.45 MB / 442.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.4329, allocations: 42.56 kB / 442.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.545e-06/0.433, allocations: 0 / 442.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007265/0.4402, allocations: 1.582 MB / 443.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.4403, allocations: 106.8 kB / 444 MB, free: 13.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.4404, allocations: 125.7 kB / 444.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.4405, allocations: 33.7 kB / 444.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.75e-05/0.4405, allocations: 104.4 kB / 444.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.482e-05/0.4406, allocations: 118.2 kB / 444.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.4408, allocations: 73.59 kB / 444.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4409, allocations: 322.8 kB / 444.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004027/0.4413, allocations: 135.9 kB / 444.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.4417, allocations: 198.6 kB / 445 MB, free: 12.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008563/0.4426, allocations: 348.2 kB / 445.4 MB, free: 12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.4426, allocations: 7.938 kB / 445.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001147/0.4438, allocations: 426.2 kB / 445.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4438, allocations: 8 kB / 445.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4438, allocations: 0 / 445.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.4441, allocations: 32.84 kB / 445.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.4446, allocations: 91.38 kB / 445.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004123/0.445, allocations: 0.5565 MB / 446.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.4453, allocations: 24.02 kB / 446.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.4454, allocations: 19.97 kB / 446.5 MB, free: 10.81 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.0001519/0.4455, allocations: 137.7 kB / 446.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.4457, allocations: 15.84 kB / 446.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.4478, allocations: 1.439 MB / 448.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/0.4478, allocations: 31.92 kB / 448.2 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4479, allocations: 4 kB / 448.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4479, allocations: 0 / 448.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.4508, allocations: 1.965 MB / 450.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.4508, allocations: 7.938 kB / 450.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.4513, allocations: 87.98 kB / 450.2 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003066/0.4516, allocations: 68.7 kB / 450.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.641e-05/0.4517, allocations: 19.92 kB / 450.3 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003513/0.452, allocations: 0.5859 MB / 450.9 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.902e-06/0.452, allocations: 7.969 kB / 450.9 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/0.4543, allocations: 1.69 MB / 452.6 MB, free: 4.613 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-05/0.4544, allocations: 128.4 kB / 452.7 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.4544, allocations: 8 kB / 452.7 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00038/0.4548, allocations: 24.02 kB / 452.8 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.819e-05/0.4549, allocations: 31.84 kB / 452.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.455, allocations: 19.98 kB / 452.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.091e-05/0.455, allocations: 95.27 kB / 452.9 MB, free: 4.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.455, allocations: 0 / 452.9 MB, free: 4.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003874/0.4589, allocations: 0.9605 MB / 453.9 MB, free: 3.332 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.005825/0.4648, allocations: 1.141 MB / 455 MB, free: 2.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.4664, allocations: 0.628 MB / 455.6 MB, free: 1.656 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.4665, allocations: 0 / 455.6 MB, free: 1.656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008206/0.4673, allocations: 0.5128 MB / 456.1 MB, free: 1.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008087/0.4681, allocations: 77.47 kB / 456.2 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.4705, allocations: 1.31 MB / 457.5 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.4709, allocations: 0.8178 MB / 458.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.4713, allocations: 137.7 kB / 458.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.4714, allocations: 39.41 kB / 458.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4714, allocations: 0 / 458.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of Templates: time 0.05254/0.524, allocations: 36.31 MB / 494.8 MB, free: 10.41 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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