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.001409/0.001409, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001279/0.001279, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 51.92 kB / 351.9 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2992, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01633/0.3155, allocations: 12.9 MB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.3306, allocations: 11.55 MB / 425.8 MB, free: 344 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.3308, allocations: 4 kB / 425.8 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004683/0.3313, allocations: 75.55 kB / 425.9 MB, free: 264 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003539/0.3317, allocations: 83.38 kB / 426 MB, free: 180 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01568/0.3474, allocations: 5.075 MB / 431.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.3478, allocations: 234.8 kB / 431.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.681e-05/0.3479, allocations: 17.44 kB / 431.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.3483, allocations: 195.3 kB / 431.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.3485, allocations: 63.77 kB / 431.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.3485, allocations: 8 kB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01307/0.3616, allocations: 6.993 MB / 438.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.3617, allocations: 31.89 kB / 438.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.3619, allocations: 67.67 kB / 438.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.3722, allocations: 3.86 MB / 442.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3722, allocations: 4 kB / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3722, allocations: 0 / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.3723, allocations: 0 / 442.5 MB, free: 15.62 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.005673/0.3779, allocations: 1.143 MB / 443.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.378, allocations: 8.031 kB / 443.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005535/0.3786, allocations: 56.7 kB / 443.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.379, allocations: 220.2 kB / 443.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.379, allocations: 12.66 kB / 444 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.3791, allocations: 12.38 kB / 444 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.3804, allocations: 388.8 kB / 444.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3805, allocations: 7.906 kB / 444.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.3805, allocations: 4 kB / 444.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3805, allocations: 4 kB / 444.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.382, allocations: 363.5 kB / 444.7 MB, free: 13.31 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.001571/0.3836, allocations: 1.184 MB / 445.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/0.3845, allocations: 275.8 kB / 446.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.3848, allocations: 116.3 kB / 446.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09989/0.4847, allocations: 47.64 MB / 493.9 MB, free: 6.352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/0.4848, allocations: 42.55 kB / 494 MB, free: 6.301 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.4848, allocations: 3.938 kB / 494 MB, free: 6.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007045/0.4919, allocations: 1.578 MB / 495.5 MB, free: 4.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/0.492, allocations: 114.8 kB / 495.7 MB, free: 4.527 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.4921, allocations: 117.8 kB / 495.8 MB, free: 4.402 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.4921, allocations: 33.64 kB / 495.8 MB, free: 4.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.646e-05/0.4922, allocations: 104.5 kB / 495.9 MB, free: 4.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.4923, allocations: 122.3 kB / 496 MB, free: 4.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.4925, allocations: 69.47 kB / 496.1 MB, free: 4.062 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4926, allocations: 326.8 kB / 496.4 MB, free: 3.734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000388/0.493, allocations: 135.9 kB / 496.5 MB, free: 3.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.4934, allocations: 198.5 kB / 496.7 MB, free: 3.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007948/0.4942, allocations: 354.5 kB / 497.1 MB, free: 3.012 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4942, allocations: 0 / 497.1 MB, free: 3.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001141/0.4954, allocations: 425.9 kB / 497.5 MB, free: 2.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.4954, allocations: 8 kB / 497.5 MB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.4954, allocations: 0 / 497.5 MB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002647/0.4957, allocations: 45.03 kB / 497.6 MB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.4962, allocations: 87.88 kB / 497.6 MB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004124/0.4966, allocations: 0.5484 MB / 498.2 MB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.4969, allocations: 32 kB / 498.2 MB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.497, allocations: 16 kB / 498.2 MB, free: 1.824 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.0001673/0.4971, allocations: 137.7 kB / 498.4 MB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.4973, allocations: 15.91 kB / 498.4 MB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/0.4996, allocations: 1.442 MB / 499.8 MB, free: 212 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.903e-05/0.4996, allocations: 23.97 kB / 499.9 MB, free: 188 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.4996, allocations: 4 kB / 499.9 MB, free: 184 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.4997, allocations: 8.359 kB / 499.9 MB, free: 176 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003101/0.5028, allocations: 1.979 MB / 0.4901 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.5028, allocations: 4.125 kB / 0.4901 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.5032, allocations: 83.86 kB / 0.4902 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003212/0.5036, allocations: 68.73 kB / 0.4902 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.5036, allocations: 15.98 kB / 0.4902 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004135/0.5041, allocations: 0.5913 MB / 0.4908 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5041, allocations: 0 / 0.4908 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.5064, allocations: 1.69 MB / 0.4925 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.5065, allocations: 132.4 kB / 0.4926 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.5066, allocations: 12 kB / 0.4926 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.507, allocations: 19.92 kB / 0.4926 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.918e-05/0.5071, allocations: 35.89 kB / 0.4927 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.512e-05/0.5071, allocations: 19.98 kB / 0.4927 GB, free: 11.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.465e-05/0.5072, allocations: 91.27 kB / 0.4928 GB, free: 11.29 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5072, allocations: 0 / 0.4928 GB, free: 11.29 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003221/0.5104, allocations: 0.9527 MB / 0.4937 GB, free: 10.33 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.005294/0.5157, allocations: 1.146 MB / 0.4948 GB, free: 9.176 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.5174, allocations: 0.6127 MB / 0.4954 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5174, allocations: 0 / 0.4954 GB, free: 8.562 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000902/0.5183, allocations: 0.5051 MB / 0.4959 GB, free: 8.059 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.5192, allocations: 83.38 kB / 0.496 GB, free: 7.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.5217, allocations: 1.342 MB / 0.4973 GB, free: 6.594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.5222, allocations: 0.8178 MB / 0.4981 GB, free: 5.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.5223, allocations: 39.41 kB / 0.4981 GB, free: 5.711 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.5223, allocations: 0 / 0.4981 GB, free: 5.711 MB / 430.1 MB Notification: Performance of Templates: time 0.03434/0.5567, allocations: 21.77 MB / 0.5194 GB, free: 15.91 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/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