Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001291/0.001291, allocations: 102.4 kB / 17.58 MB, free: 5.418 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.001336/0.001336, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.297/1.297, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 55.92 kB / 280.6 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.0901, allocations: 46.63 MB / 327.3 MB, free: 4.5 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01694/0.1071, allocations: 12.9 MB / 340.2 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.12, allocations: 11.54 MB / 351.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1202, allocations: 0 / 351.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.1206, allocations: 71.55 kB / 351.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1209, allocations: 91.42 kB / 351.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01263/0.1335, allocations: 5.062 MB / 356.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.1339, allocations: 227 kB / 357.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.321e-05/0.134, allocations: 9.453 kB / 357.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004591/0.1345, allocations: 199.3 kB / 357.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1346, allocations: 79.69 kB / 357.4 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.1346, allocations: 8 kB / 357.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01508/0.1497, allocations: 6.821 MB / 364.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1499, allocations: 23.91 kB / 364.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.1501, allocations: 67.73 kB / 364.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009286/0.1594, allocations: 3.879 MB / 368.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.1594, allocations: 0 / 368.2 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1594, allocations: 3.938 kB / 368.2 MB, free: 11.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.1594, allocations: 0 / 368.2 MB, free: 11.39 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.004977/0.1644, allocations: 1.142 MB / 369.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1645, allocations: 12.03 kB / 369.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004891/0.165, allocations: 44.8 kB / 369.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.1652, allocations: 220.1 kB / 369.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.1652, allocations: 20.38 kB / 369.7 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.1653, allocations: 16.36 kB / 369.7 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1666, allocations: 380 kB / 370.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.1666, allocations: 4 kB / 370.1 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.1667, allocations: 4 kB / 370.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1667, allocations: 4 kB / 370.1 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.1681, allocations: 359.5 kB / 370.4 MB, free: 9.094 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.00161/0.1697, allocations: 1.191 MB / 371.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008613/0.1706, allocations: 271.8 kB / 371.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.1709, allocations: 114.9 kB / 372 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2373/0.4082, allocations: 47.45 MB / 419.4 MB, free: 19.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.992e-05/0.4083, allocations: 47.25 kB / 419.5 MB, free: 19.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.487e-06/0.4083, allocations: 1.078 kB / 419.5 MB, free: 19.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006323/0.4146, allocations: 1.582 MB / 421.1 MB, free: 18.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.4146, allocations: 106.8 kB / 421.2 MB, free: 18.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.761e-05/0.4147, allocations: 119.2 kB / 421.3 MB, free: 17.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.4148, allocations: 29.7 kB / 421.3 MB, free: 17.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.4148, allocations: 112 kB / 421.4 MB, free: 17.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.518e-05/0.4149, allocations: 118.2 kB / 421.5 MB, free: 17.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.9e-05/0.415, allocations: 67.11 kB / 421.6 MB, free: 17.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.51e-05/0.415, allocations: 330.6 kB / 421.9 MB, free: 17.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003396/0.4154, allocations: 143.7 kB / 422.1 MB, free: 17.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.4157, allocations: 206.4 kB / 422.3 MB, free: 16.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/0.4164, allocations: 343.4 kB / 422.6 MB, free: 16.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4165, allocations: 0 / 422.6 MB, free: 16.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000929/0.4174, allocations: 421.9 kB / 423 MB, free: 16.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.4174, allocations: 8 kB / 423 MB, free: 16.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4174, allocations: 4.219 kB / 423 MB, free: 16.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002182/0.4176, allocations: 36.83 kB / 423.1 MB, free: 16.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004267/0.4181, allocations: 95.75 kB / 423.2 MB, free: 16.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002558/0.4184, allocations: 0.5446 MB / 423.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.4186, allocations: 27.97 kB / 423.7 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.4187, allocations: 14.84 kB / 423.7 MB, free: 15.41 MB / 318.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.0001042/0.4188, allocations: 133.8 kB / 423.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.777e-05/0.4189, allocations: 19.75 kB / 423.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.4206, allocations: 1.451 MB / 425.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.4206, allocations: 25.61 kB / 425.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4206, allocations: 7.969 kB / 425.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.4206, allocations: 3.984 kB / 425.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.4229, allocations: 1.965 MB / 427.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4229, allocations: 0 / 427.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004046/0.4233, allocations: 91.98 kB / 427.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002735/0.4236, allocations: 68.7 kB / 427.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.4237, allocations: 11.98 kB / 427.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002207/0.4239, allocations: 0.5953 MB / 428.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4239, allocations: 0 / 428.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.4256, allocations: 1.696 MB / 429.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.4257, allocations: 124.5 kB / 429.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.4257, allocations: 11.94 kB / 429.9 MB, free: 9.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.4261, allocations: 26.61 kB / 430 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.4261, allocations: 31.95 kB / 430 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.4262, allocations: 11.98 kB / 430 MB, free: 8.996 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.458e-05/0.4262, allocations: 90.84 kB / 430.1 MB, free: 8.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4262, allocations: 4.547 kB / 430.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00237/0.4286, allocations: 0.9565 MB / 431.1 MB, free: 8.023 MB / 318.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.003633/0.4322, allocations: 1.145 MB / 432.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.4336, allocations: 0.6208 MB / 432.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4336, allocations: 4 kB / 432.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.4342, allocations: 0.5162 MB / 433.3 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000747/0.435, allocations: 80.62 kB / 433.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.4369, allocations: 1.296 MB / 434.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.4371, allocations: 0.8217 MB / 435.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003343/0.4374, allocations: 139.6 kB / 435.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4375, allocations: 39.36 kB / 435.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4376, allocations: 0 / 435.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of Templates: time 0.04981/0.4874, allocations: 36.3 MB / 472 MB, free: 15.11 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches