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.001391/0.001391, allocations: 119.8 kB / 18.41 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 203.5 kB / 19.36 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 62.31 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09537, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01599/0.1114, allocations: 13.01 MB / 371.9 MB, free: 272 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1803/0.2917, allocations: 11.54 MB / 383.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2919, allocations: 1.5 kB / 383.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003581/0.2923, allocations: 70.45 kB / 383.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.2926, allocations: 87.86 kB / 383.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01521/0.3078, allocations: 5.073 MB / 388.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.3083, allocations: 232.3 kB / 388.9 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.075e-05/0.3084, allocations: 21.08 kB / 388.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004942/0.3089, allocations: 189.6 kB / 389.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.3091, allocations: 76.92 kB / 389.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.3091, allocations: 8.25 kB / 389.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01498/0.3241, allocations: 7.005 MB / 396.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.3242, allocations: 30.25 kB / 396.2 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.3244, allocations: 67.95 kB / 396.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.3347, allocations: 3.873 MB / 400.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3348, allocations: 0 / 400.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3348, allocations: 2.906 kB / 400.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.3348, allocations: 4 kB / 400.2 MB, free: 15.66 MB / 318.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.005068/0.3399, allocations: 1.142 MB / 401.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.3399, allocations: 7.781 kB / 401.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004508/0.3404, allocations: 51.7 kB / 401.4 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.3407, allocations: 219.8 kB / 401.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.931e-05/0.3408, allocations: 18.56 kB / 401.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.3408, allocations: 15.59 kB / 401.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.342, allocations: 389.2 kB / 402 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.342, allocations: 7.875 kB / 402 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.342, allocations: 7.844 kB / 402 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3421, allocations: 7.125 kB / 402 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3434, allocations: 354.8 kB / 402.4 MB, free: 14.12 MB / 318.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.001267/0.3446, allocations: 1.19 MB / 403.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000777/0.3454, allocations: 276.6 kB / 403.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.3457, allocations: 116.3 kB / 403.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09632/0.442, allocations: 52.8 MB / 456.7 MB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.4421, allocations: 38.5 kB / 456.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.4421, allocations: 0 / 456.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006761/0.4489, allocations: 1.583 MB / 458.4 MB, free: 380 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.449, allocations: 106.8 kB / 458.5 MB, free: 248 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.4491, allocations: 117.8 kB / 458.6 MB, free: 120 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.4491, allocations: 29.7 kB / 458.6 MB, free: 84 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.4492, allocations: 108.5 kB / 458.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.809e-05/0.4493, allocations: 114.4 kB / 458.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.4494, allocations: 73.53 kB / 458.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4496, allocations: 330.8 kB / 459.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/0.45, allocations: 135.6 kB / 459.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.4504, allocations: 202.8 kB / 459.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.4512, allocations: 354.5 kB / 459.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4512, allocations: 3.938 kB / 459.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001037/0.4523, allocations: 418.1 kB / 460.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4523, allocations: 10.19 kB / 460.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.4523, allocations: 3.984 kB / 460.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/0.4526, allocations: 39.69 kB / 460.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.453, allocations: 92.03 kB / 460.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004223/0.4535, allocations: 0.5522 MB / 461 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.4537, allocations: 20.39 kB / 461 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.4538, allocations: 19.98 kB / 461 MB, free: 13.54 MB / 382.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.0001462/0.4539, allocations: 142.8 kB / 461.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.454, allocations: 15.81 kB / 461.2 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.4562, allocations: 1.431 MB / 462.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/0.4562, allocations: 27.91 kB / 462.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4562, allocations: 0 / 462.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.4562, allocations: 15.39 kB / 462.7 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.4591, allocations: 1.967 MB / 464.6 MB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.4591, allocations: 4 kB / 464.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004226/0.4595, allocations: 79.86 kB / 464.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/0.4598, allocations: 72.83 kB / 464.8 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.4599, allocations: 19.98 kB / 464.8 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003775/0.4603, allocations: 0.5797 MB / 465.4 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.4603, allocations: 12.06 kB / 465.4 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.4625, allocations: 1.686 MB / 467.1 MB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.4626, allocations: 124.5 kB / 467.2 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.206e-05/0.4627, allocations: 12 kB / 467.2 MB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.4631, allocations: 20.03 kB / 467.2 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.4632, allocations: 39.83 kB / 467.3 MB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.523e-05/0.4632, allocations: 15.98 kB / 467.3 MB, free: 7.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.506e-05/0.4633, allocations: 91.27 kB / 467.4 MB, free: 7.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4633, allocations: 0 / 467.4 MB, free: 7.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003739/0.467, allocations: 0.9605 MB / 468.3 MB, free: 6.07 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.004003/0.4711, allocations: 1.144 MB / 469.5 MB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.4724, allocations: 0.6128 MB / 470.1 MB, free: 4.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4724, allocations: 0 / 470.1 MB, free: 4.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007659/0.4732, allocations: 0.5084 MB / 470.6 MB, free: 3.801 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.4739, allocations: 81.97 kB / 470.7 MB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.4762, allocations: 1.3 MB / 472 MB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000385/0.4766, allocations: 0.8217 MB / 472.8 MB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003318/0.477, allocations: 137.7 kB / 472.9 MB, free: 1.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.4771, allocations: 35.41 kB / 473 MB, free: 1.355 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4771, allocations: 0 / 473 MB, free: 1.355 MB / 382.1 MB Notification: Performance of Templates: time 0.04669/0.5238, allocations: 36.23 MB / 0.4973 GB, free: 13.12 MB / 430.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 -s cvode -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