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.001452/0.001452, allocations: 110.1 kB / 17.29 MB, free: 6.219 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.001541/0.001541, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.374/1.374, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 41.69 kB / 300.8 MB, free: 6.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.102, allocations: 49.44 MB / 350.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01586/0.1179, allocations: 13.03 MB / 363.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1951/0.313, allocations: 11.61 MB / 374.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.3132, allocations: 1.562 kB / 374.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003906/0.3136, allocations: 65 kB / 374.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003332/0.314, allocations: 77.88 kB / 375 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01736/0.3314, allocations: 4.47 MB / 379.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.3318, allocations: 234.6 kB / 379.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.414e-05/0.3319, allocations: 8.719 kB / 379.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005024/0.3324, allocations: 192.5 kB / 379.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.3326, allocations: 74.53 kB / 380 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.3326, allocations: 8.875 kB / 380 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01593/0.3485, allocations: 6.884 MB / 386.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.3487, allocations: 33.27 kB / 386.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.3489, allocations: 75.41 kB / 387 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006338/0.3552, allocations: 2.602 MB / 389.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.3553, allocations: 0 / 389.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3553, allocations: 0.6562 kB / 389.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3553, allocations: 4 kB / 389.6 MB, free: 6.715 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.006061/0.3614, allocations: 1.137 MB / 390.7 MB, free: 5.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3614, allocations: 9.656 kB / 390.7 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004921/0.3619, allocations: 54.7 kB / 390.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.3622, allocations: 215.9 kB / 391 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.3622, allocations: 10.88 kB / 391 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.3623, allocations: 25.66 kB / 391 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.3635, allocations: 390.6 kB / 391.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3635, allocations: 1.5 kB / 391.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.3635, allocations: 5 kB / 391.4 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.3636, allocations: 8.438 kB / 391.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3649, allocations: 358.5 kB / 391.8 MB, free: 5.18 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.001197/0.3661, allocations: 1.182 MB / 392.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/0.3669, allocations: 278.7 kB / 393.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.3671, allocations: 117.3 kB / 393.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09348/0.4606, allocations: 47.45 MB / 440.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.4607, allocations: 46.55 kB / 440.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.404e-06/0.4608, allocations: 0 / 440.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.006932/0.4677, allocations: 1.585 MB / 442.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.4678, allocations: 110.8 kB / 442.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.4679, allocations: 121.8 kB / 442.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.4679, allocations: 29.7 kB / 442.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.316e-05/0.468, allocations: 100.5 kB / 442.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.4681, allocations: 117.6 kB / 442.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.4683, allocations: 69.59 kB / 442.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4684, allocations: 330.8 kB / 443.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.4688, allocations: 132.3 kB / 443.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.4692, allocations: 198.8 kB / 443.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007478/0.47, allocations: 336.6 kB / 443.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.47, allocations: 7.938 kB / 443.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001011/0.471, allocations: 433 kB / 444.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.471, allocations: 11.98 kB / 444.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.471, allocations: 7.812 kB / 444.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.4713, allocations: 36.84 kB / 444.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.4718, allocations: 87.88 kB / 444.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003917/0.4722, allocations: 0.5562 MB / 445.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.4725, allocations: 20.02 kB / 445.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.4725, allocations: 19.98 kB / 445.1 MB, free: 12.84 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.0001612/0.4727, allocations: 137.7 kB / 445.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.4728, allocations: 15.91 kB / 445.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.475, allocations: 1.443 MB / 446.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/0.475, allocations: 23.91 kB / 446.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.475, allocations: 3.984 kB / 446.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.475, allocations: 0 / 446.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.478, allocations: 1.983 MB / 448.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4781, allocations: 4.125 kB / 448.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/0.4785, allocations: 79.92 kB / 448.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003292/0.4789, allocations: 76.64 kB / 448.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.4789, allocations: 11.98 kB / 448.9 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003708/0.4793, allocations: 0.5836 MB / 449.4 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4793, allocations: 7.969 kB / 449.5 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.4815, allocations: 1.685 MB / 451.1 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.4817, allocations: 131.1 kB / 451.3 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.4817, allocations: 8 kB / 451.3 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/0.4821, allocations: 24.02 kB / 451.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.704e-05/0.4822, allocations: 39.84 kB / 451.3 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/0.4822, allocations: 15.98 kB / 451.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.951e-05/0.4823, allocations: 91.27 kB / 451.4 MB, free: 6.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4823, allocations: 0 / 451.4 MB, free: 6.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004237/0.4866, allocations: 0.9568 MB / 452.4 MB, free: 5.367 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.005325/0.4919, allocations: 1.14 MB / 453.5 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.4936, allocations: 0.6276 MB / 454.2 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4936, allocations: 3.938 kB / 454.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008076/0.4944, allocations: 0.5209 MB / 454.7 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/0.4952, allocations: 78.86 kB / 454.8 MB, free: 3.098 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.4977, allocations: 1.524 MB / 456.3 MB, free: 1.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.4982, allocations: 0.8177 MB / 457.1 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.4983, allocations: 43.41 kB / 457.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4984, allocations: 0 / 457.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of Templates: time 0.03636/0.5347, allocations: 21.81 MB / 479 MB, free: 10.8 MB / 398.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