Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.1 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 55.59 kB / 307.1 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 50.53 MB / 357.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01592/0.1183, allocations: 13.14 MB / 370.8 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1718/0.2902, allocations: 11.61 MB / 382.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.2904, allocations: 0 / 382.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.2908, allocations: 63.56 kB / 382.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003505/0.2912, allocations: 81.78 kB / 382.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0166/0.3078, allocations: 4.468 MB / 387 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.3082, allocations: 229.5 kB / 387.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.221e-05/0.3083, allocations: 16 kB / 387.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005058/0.3088, allocations: 188.1 kB / 387.4 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.309, allocations: 72.72 kB / 387.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.309, allocations: 10.88 kB / 387.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01346/0.3225, allocations: 6.892 MB / 394.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-05/0.3226, allocations: 33.67 kB / 394.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.3228, allocations: 67.83 kB / 394.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005356/0.3281, allocations: 2.61 MB / 397.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3282, allocations: 0 / 397.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3282, allocations: 0 / 397.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.3282, allocations: 0 / 397.1 MB, free: 1.633 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.005403/0.3336, allocations: 1.149 MB / 398.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3336, allocations: 8.75 kB / 398.3 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004745/0.3341, allocations: 50.98 kB / 398.3 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.3343, allocations: 228 kB / 398.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.3343, allocations: 18.06 kB / 398.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.3344, allocations: 14.12 kB / 398.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.3356, allocations: 386.8 kB / 398.9 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.3356, allocations: 0.5 kB / 398.9 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.3357, allocations: 6.188 kB / 398.9 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3357, allocations: 5.438 kB / 398.9 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.337, allocations: 360.4 kB / 399.3 MB, free: 96 kB / 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.001402/0.3384, allocations: 1.187 MB / 400.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008172/0.3392, allocations: 295 kB / 400.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.3395, allocations: 108.7 kB / 400.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09649/0.436, allocations: 52.58 MB / 453.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.4361, allocations: 42.5 kB / 453.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.4361, allocations: 0 / 453.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.007193/0.4433, allocations: 1.581 MB / 455.1 MB, free: 3.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.4434, allocations: 106.8 kB / 455.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.4435, allocations: 117.8 kB / 455.3 MB, free: 3.023 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.4436, allocations: 33.7 kB / 455.3 MB, free: 2.984 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/0.4436, allocations: 104.4 kB / 455.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.4437, allocations: 118.4 kB / 455.5 MB, free: 2.762 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.4439, allocations: 73.59 kB / 455.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.444, allocations: 326.8 kB / 455.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.4444, allocations: 127.9 kB / 456.1 MB, free: 2.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004336/0.4449, allocations: 206.5 kB / 456.3 MB, free: 2.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00083/0.4457, allocations: 346.6 kB / 456.6 MB, free: 1.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.4457, allocations: 7.938 kB / 456.6 MB, free: 1.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00112/0.4468, allocations: 428 kB / 457 MB, free: 1.207 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.4469, allocations: 4 kB / 457 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4469, allocations: 4 kB / 457 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002461/0.4471, allocations: 36.83 kB / 457.1 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.4476, allocations: 92.19 kB / 457.2 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003933/0.448, allocations: 0.5524 MB / 457.7 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.4484, allocations: 20.02 kB / 457.7 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.4484, allocations: 19.98 kB / 457.8 MB, free: 464 kB / 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.0001754/0.4486, allocations: 144.8 kB / 457.9 MB, free: 312 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.4487, allocations: 23.91 kB / 457.9 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.451, allocations: 1.446 MB / 459.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/0.451, allocations: 23.91 kB / 459.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.451, allocations: 0 / 459.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.451, allocations: 3.984 kB / 459.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.4541, allocations: 1.975 MB / 461.4 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4541, allocations: 3.938 kB / 461.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.4546, allocations: 83.86 kB / 461.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003448/0.455, allocations: 72.7 kB / 461.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/0.455, allocations: 16.02 kB / 461.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003893/0.4554, allocations: 0.5875 MB / 462.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.4554, allocations: 3.938 kB / 462.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.4577, allocations: 1.685 MB / 463.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.4579, allocations: 124.5 kB / 463.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.306e-05/0.4579, allocations: 8 kB / 463.9 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/0.4583, allocations: 27.92 kB / 464 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.4584, allocations: 36 kB / 464 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.723e-05/0.4585, allocations: 19.97 kB / 464 MB, free: 10.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.744e-05/0.4585, allocations: 91.27 kB / 464.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4585, allocations: 4 kB / 464.1 MB, free: 9.922 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003554/0.4621, allocations: 0.9643 MB / 465.1 MB, free: 8.957 MB / 382.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.00632/0.4684, allocations: 1.134 MB / 466.2 MB, free: 7.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4702, allocations: 0.6315 MB / 466.9 MB, free: 7.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.4702, allocations: 4 kB / 466.9 MB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008832/0.4711, allocations: 0.5132 MB / 467.4 MB, free: 6.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/0.4719, allocations: 76.14 kB / 467.4 MB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.4745, allocations: 1.52 MB / 469 MB, free: 5.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.4749, allocations: 0.8178 MB / 469.8 MB, free: 4.176 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.4751, allocations: 39.42 kB / 469.8 MB, free: 4.137 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4751, allocations: 0 / 469.8 MB, free: 4.137 MB / 382.1 MB Notification: Performance of Templates: time 0.03316/0.5083, allocations: 21.91 MB / 491.7 MB, free: 14.2 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches