Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 115.3 kB / 17.83 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 201.1 kB / 18.78 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.458/1.458, allocations: 230.4 MB / 250 MB, free: 9.023 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.84 kB / 367.3 MB, free: 7.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2624, allocations: 53.31 MB / 420.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01704/0.2795, allocations: 13.06 MB / 433.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0155/0.295, allocations: 11.57 MB / 445.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.2951, allocations: 4 kB / 445.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.2954, allocations: 75.55 kB / 445.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.2957, allocations: 79.44 kB / 445.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01254/0.3082, allocations: 5.081 MB / 450.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004043/0.3086, allocations: 242.9 kB / 450.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.895e-05/0.3087, allocations: 9.438 kB / 450.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004681/0.3092, allocations: 195.3 kB / 450.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.3093, allocations: 71.69 kB / 451 MB, free: 10 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.3093, allocations: 8 kB / 451 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01262/0.3219, allocations: 7.009 MB / 458 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/0.322, allocations: 27.91 kB / 458 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3221, allocations: 71.72 kB / 458.1 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00782/0.3299, allocations: 3.874 MB / 462 MB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.33, allocations: 3.984 kB / 462 MB, free: 15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.33, allocations: 0 / 462 MB, free: 15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.33, allocations: 0 / 462 MB, free: 15 MB / 382.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.004808/0.3348, allocations: 1.175 MB / 463.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3348, allocations: 8.031 kB / 463.2 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005106/0.3353, allocations: 60.78 kB / 463.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.3357, allocations: 216.2 kB / 463.4 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.3357, allocations: 12.59 kB / 463.5 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.608e-05/0.3358, allocations: 20.31 kB / 463.5 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.3371, allocations: 380.9 kB / 463.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.3372, allocations: 3.938 kB / 463.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.3372, allocations: 8 kB / 463.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.3372, allocations: 8 kB / 463.9 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.3386, allocations: 359.6 kB / 464.2 MB, free: 12.65 MB / 382.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.001696/0.3403, allocations: 1.176 MB / 465.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008945/0.3412, allocations: 279.8 kB / 465.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.3415, allocations: 110.9 kB / 465.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1044/0.446, allocations: 52.82 MB / 0.5064 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.446, allocations: 42.5 kB / 0.5065 GB, free: 15.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.446, allocations: 0 / 0.5065 GB, free: 15.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=33): time 0.006895/0.4529, allocations: 1.578 MB / 0.508 GB, free: 13.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.453, allocations: 110.8 kB / 0.5081 GB, free: 13.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.4531, allocations: 117.7 kB / 0.5082 GB, free: 13.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.4531, allocations: 37.7 kB / 0.5083 GB, free: 13.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.266e-05/0.4532, allocations: 104.6 kB / 0.5084 GB, free: 13.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.4533, allocations: 130.9 kB / 0.5085 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.4534, allocations: 69.62 kB / 0.5086 GB, free: 13.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4536, allocations: 322.8 kB / 0.5089 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.454, allocations: 135.7 kB / 0.509 GB, free: 12.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004386/0.4544, allocations: 198.8 kB / 0.5092 GB, free: 12.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008149/0.4552, allocations: 354.5 kB / 0.5095 GB, free: 12.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4552, allocations: 4 kB / 0.5095 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001083/0.4563, allocations: 422 kB / 0.5099 GB, free: 11.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4563, allocations: 10.5 kB / 0.51 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4563, allocations: 0 / 0.51 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002504/0.4566, allocations: 36.83 kB / 0.51 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.4571, allocations: 88.03 kB / 0.5101 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004281/0.4575, allocations: 0.5484 MB / 0.5106 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.4578, allocations: 27.94 kB / 0.5106 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.4578, allocations: 16 kB / 0.5106 GB, free: 10.97 MB / 446.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.0001549/0.458, allocations: 137.8 kB / 0.5108 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.4581, allocations: 23.89 kB / 0.5108 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.4603, allocations: 1.439 MB / 0.5122 GB, free: 9.352 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.4603, allocations: 23.97 kB / 0.5122 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4603, allocations: 0 / 0.5122 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4603, allocations: 12.02 kB / 0.5122 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.4634, allocations: 1.971 MB / 0.5142 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4634, allocations: 4 kB / 0.5142 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.4638, allocations: 79.86 kB / 0.5142 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003189/0.4641, allocations: 72.92 kB / 0.5143 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.4642, allocations: 19.98 kB / 0.5143 GB, free: 7.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004173/0.4646, allocations: 0.5874 MB / 0.5149 GB, free: 6.484 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4646, allocations: 4.031 kB / 0.5149 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.4669, allocations: 1.69 MB / 0.5166 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.467, allocations: 133 kB / 0.5167 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.4671, allocations: 12 kB / 0.5167 GB, free: 4.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.4674, allocations: 23.92 kB / 0.5167 GB, free: 4.578 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.568e-05/0.4675, allocations: 35.89 kB / 0.5168 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.634e-05/0.4675, allocations: 19.92 kB / 0.5168 GB, free: 4.523 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.027e-05/0.4676, allocations: 91.22 kB / 0.5169 GB, free: 4.434 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4676, allocations: 0 / 0.5169 GB, free: 4.434 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002683/0.4703, allocations: 0.9708 MB / 0.5178 GB, free: 3.461 MB / 446.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.003503/0.4738, allocations: 1.15 MB / 0.5189 GB, free: 2.297 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.4751, allocations: 0.5893 MB / 0.5195 GB, free: 1.707 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.4751, allocations: 8.125 kB / 0.5195 GB, free: 1.699 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007584/0.4759, allocations: 448.6 kB / 0.5199 GB, free: 1.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.4766, allocations: 80.52 kB / 0.52 GB, free: 1.184 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.4789, allocations: 1.314 MB / 0.5213 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004457/0.4793, allocations: 0.8178 MB / 0.5221 GB, free: 14.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003418/0.4797, allocations: 137.7 kB / 0.5222 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.4798, allocations: 39.41 kB / 0.5223 GB, free: 14.8 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4798, allocations: 0 / 0.5223 GB, free: 14.8 MB / 462.1 MB Notification: Performance of Templates: time 0.2178/0.6976, allocations: 36.35 MB / 0.5578 GB, free: 111.6 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches