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.001463/0.001463, allocations: 111.6 kB / 17.06 MB, free: 6 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.001436/0.001436, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 39.94 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2701, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01513/0.2853, allocations: 12.91 MB / 413.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.2985, allocations: 11.55 MB / 425.2 MB, free: 332 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.2987, allocations: 0 / 425.2 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.2991, allocations: 71.56 kB / 425.2 MB, free: 260 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.2994, allocations: 83.42 kB / 425.3 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01411/0.3136, allocations: 5.076 MB / 430.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.3141, allocations: 234.9 kB / 430.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.002e-05/0.3141, allocations: 9.453 kB / 430.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005497/0.3147, allocations: 203.3 kB / 430.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.3149, allocations: 63.77 kB / 430.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.3149, allocations: 8 kB / 430.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01287/0.3278, allocations: 6.993 MB / 437.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.63e-05/0.3279, allocations: 27.91 kB / 437.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.328, allocations: 75.66 kB / 438 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007678/0.3357, allocations: 3.86 MB / 441.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3357, allocations: 0 / 441.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3357, allocations: 3.938 kB / 441.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3357, allocations: 0 / 441.8 MB, free: 15.61 MB / 366.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.004752/0.3405, allocations: 1.142 MB / 443 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3405, allocations: 16.02 kB / 443 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005308/0.3411, allocations: 48.7 kB / 443.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.3414, allocations: 216.2 kB / 443.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.3415, allocations: 16.66 kB / 443.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.3415, allocations: 20.28 kB / 443.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.3428, allocations: 388.8 kB / 443.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3428, allocations: 0 / 443.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.3429, allocations: 4 kB / 443.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3429, allocations: 4 kB / 443.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.3443, allocations: 355.5 kB / 444 MB, free: 13.32 MB / 366.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.001389/0.3457, allocations: 1.195 MB / 445.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008491/0.3466, allocations: 275.7 kB / 445.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.3469, allocations: 114.9 kB / 445.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09102/0.4379, allocations: 47.64 MB / 493.3 MB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.438, allocations: 38.56 kB / 493.3 MB, free: 6.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.438, allocations: 3.938 kB / 493.3 MB, free: 6.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006674/0.4446, allocations: 1.587 MB / 494.9 MB, free: 4.652 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.4447, allocations: 106.8 kB / 495 MB, free: 4.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.479e-05/0.4448, allocations: 113.8 kB / 495.1 MB, free: 4.402 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.4448, allocations: 37.7 kB / 495.1 MB, free: 4.359 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.273e-05/0.4449, allocations: 108.5 kB / 495.2 MB, free: 4.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.145e-05/0.445, allocations: 118.3 kB / 495.4 MB, free: 4.133 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.4451, allocations: 73.47 kB / 495.4 MB, free: 4.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4452, allocations: 322.8 kB / 495.7 MB, free: 3.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.4456, allocations: 131.9 kB / 495.9 MB, free: 3.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003981/0.446, allocations: 206.9 kB / 496.1 MB, free: 3.375 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/0.4468, allocations: 354.6 kB / 496.4 MB, free: 3.004 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4468, allocations: 4 kB / 496.4 MB, free: 3 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001031/0.4479, allocations: 425.9 kB / 496.8 MB, free: 2.574 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.4479, allocations: 10.44 kB / 496.8 MB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4479, allocations: 4 kB / 496.9 MB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002277/0.4482, allocations: 32.83 kB / 496.9 MB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.4486, allocations: 95.97 kB / 497 MB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003471/0.449, allocations: 0.5483 MB / 497.5 MB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.4493, allocations: 28 kB / 497.6 MB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.4493, allocations: 16 kB / 497.6 MB, free: 1.816 MB / 414.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.0001237/0.4495, allocations: 133.9 kB / 497.7 MB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.545e-05/0.4496, allocations: 11.91 kB / 497.7 MB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.4516, allocations: 1.454 MB / 499.2 MB, free: 200 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.4517, allocations: 19.91 kB / 499.2 MB, free: 180 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.4517, allocations: 8.031 kB / 499.2 MB, free: 172 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4517, allocations: 3.984 kB / 499.2 MB, free: 168 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.4545, allocations: 1.975 MB / 0.4894 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.4545, allocations: 4 kB / 0.4894 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004367/0.4549, allocations: 87.98 kB / 0.4895 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003001/0.4552, allocations: 64.8 kB / 0.4896 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.4553, allocations: 15.98 kB / 0.4896 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003257/0.4556, allocations: 0.5912 MB / 0.4902 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4556, allocations: 12.12 kB / 0.4902 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.4577, allocations: 1.682 MB / 0.4918 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.668e-05/0.4578, allocations: 136.4 kB / 0.492 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.4579, allocations: 8 kB / 0.492 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.4582, allocations: 23.92 kB / 0.492 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.4583, allocations: 27.95 kB / 0.492 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.4583, allocations: 19.98 kB / 0.492 GB, free: 11.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.677e-05/0.4584, allocations: 87.28 kB / 0.4921 GB, free: 11.29 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4584, allocations: 0 / 0.4921 GB, free: 11.29 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002383/0.4608, allocations: 0.9605 MB / 0.493 GB, free: 10.32 MB / 430.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.003404/0.4642, allocations: 1.139 MB / 0.4942 GB, free: 9.172 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.4655, allocations: 0.6088 MB / 0.4948 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4655, allocations: 0 / 0.4948 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.4663, allocations: 0.5162 MB / 0.4953 GB, free: 8.047 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.4671, allocations: 76.36 kB / 0.4953 GB, free: 7.973 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.4693, allocations: 1.303 MB / 0.4966 GB, free: 6.629 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.4696, allocations: 0.8217 MB / 0.4974 GB, free: 5.781 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003765/0.47, allocations: 133.8 kB / 0.4975 GB, free: 5.652 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.4701, allocations: 35.42 kB / 0.4976 GB, free: 5.617 MB / 430.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4701, allocations: 0 / 0.4976 GB, free: 5.617 MB / 430.1 MB Notification: Performance of Templates: time 0.04592/0.5161, allocations: 36.27 MB / 0.533 GB, free: 1.344 MB / 462.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