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.001377/0.001377, allocations: 110.5 kB / 17.16 MB, free: 6.082 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.001149/0.001149, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.384/1.384, allocations: 222.9 MB / 241.8 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 46.02 kB / 300.6 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1017, allocations: 49.45 MB / 350 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01562/0.1174, allocations: 13.73 MB / 363.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2137/0.3312, allocations: 12.48 MB / 376.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.3313, allocations: 5 kB / 376.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.3317, allocations: 59.12 kB / 376.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002703/0.332, allocations: 82.05 kB / 376.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01483/0.3468, allocations: 4.009 MB / 380.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004371/0.3473, allocations: 271.8 kB / 380.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.878e-05/0.3474, allocations: 9.016 kB / 380.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.3478, allocations: 183.1 kB / 380.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.348, allocations: 80.05 kB / 380.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.348, allocations: 9.188 kB / 380.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01399/0.362, allocations: 6.905 MB / 387.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.3622, allocations: 33.27 kB / 387.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.3623, allocations: 70.88 kB / 387.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005795/0.3681, allocations: 2.602 MB / 390.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.3682, allocations: 0.9375 kB / 390.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3682, allocations: 0 / 390.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3682, allocations: 0 / 390.6 MB, free: 6.738 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.005916/0.3741, allocations: 1.138 MB / 391.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3742, allocations: 9.938 kB / 391.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004815/0.3747, allocations: 49.61 kB / 391.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.3749, allocations: 225.9 kB / 392 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.3749, allocations: 13.53 kB / 392 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.375, allocations: 16.75 kB / 392 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.3762, allocations: 397.4 kB / 392.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3762, allocations: 1.094 kB / 392.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.3763, allocations: 6.188 kB / 392.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3763, allocations: 4.656 kB / 392.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.3777, allocations: 361.7 kB / 392.7 MB, free: 5.203 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.001153/0.3788, allocations: 1.185 MB / 393.9 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007767/0.3796, allocations: 275.5 kB / 394.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.3799, allocations: 113.4 kB / 394.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09357/0.4735, allocations: 47.45 MB / 441.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.4736, allocations: 38.55 kB / 441.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.114e-06/0.4736, allocations: 0 / 441.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.007251/0.4808, allocations: 1.574 MB / 443.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.4809, allocations: 110.8 kB / 443.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.4811, allocations: 125.8 kB / 443.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.4811, allocations: 33.7 kB / 443.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.134e-05/0.4812, allocations: 108.4 kB / 443.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.187e-05/0.4813, allocations: 112.7 kB / 443.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.4814, allocations: 73.59 kB / 443.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4815, allocations: 330.8 kB / 444.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.4819, allocations: 131.9 kB / 444.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000416/0.4823, allocations: 190.8 kB / 444.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007764/0.4831, allocations: 346.6 kB / 444.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4832, allocations: 3.938 kB / 444.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001099/0.4843, allocations: 429.9 kB / 445.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.4843, allocations: 4 kB / 445.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.4843, allocations: 4 kB / 445.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/0.4846, allocations: 36.94 kB / 445.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/0.4851, allocations: 91.88 kB / 445.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004232/0.4855, allocations: 0.5561 MB / 446 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.4859, allocations: 20.08 kB / 446 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.262e-05/0.4859, allocations: 19.98 kB / 446.1 MB, free: 12.83 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.0001692/0.4861, allocations: 133.8 kB / 446.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.4862, allocations: 15.81 kB / 446.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.4884, allocations: 1.445 MB / 447.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-05/0.4885, allocations: 33.11 kB / 447.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4885, allocations: 0 / 447.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.4885, allocations: 0 / 447.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.4916, allocations: 1.977 MB / 449.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.4916, allocations: 0 / 449.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.4921, allocations: 87.86 kB / 449.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003568/0.4925, allocations: 76.77 kB / 449.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.448e-05/0.4925, allocations: 15.98 kB / 449.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003953/0.4929, allocations: 0.5798 MB / 450.4 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.4929, allocations: 3.938 kB / 450.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.4952, allocations: 1.694 MB / 452.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.4953, allocations: 120.5 kB / 452.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.669e-05/0.4954, allocations: 13 kB / 452.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.4958, allocations: 28.02 kB / 452.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/0.4959, allocations: 33.11 kB / 452.3 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.722e-05/0.496, allocations: 19.98 kB / 452.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.451e-05/0.496, allocations: 95.2 kB / 452.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.496, allocations: 0 / 452.4 MB, free: 6.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004155/0.5002, allocations: 0.9604 MB / 453.4 MB, free: 5.355 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.007133/0.5074, allocations: 1.141 MB / 454.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.509, allocations: 0.6124 MB / 455.1 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.509, allocations: 4.062 kB / 455.1 MB, free: 3.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008591/0.5099, allocations: 0.5084 MB / 455.6 MB, free: 3.184 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008396/0.5108, allocations: 80.3 kB / 455.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.5133, allocations: 1.509 MB / 457.2 MB, free: 1.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.5137, allocations: 0.8177 MB / 458 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.5139, allocations: 47.41 kB / 458.1 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5139, allocations: 0 / 458.1 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of Templates: time 0.03599/0.5499, allocations: 21.8 MB / 479.9 MB, free: 10.83 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