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.001358/0.001358, allocations: 107.4 kB / 17.16 MB, free: 6.309 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.001598/0.001598, allocations: 198 kB / 18.07 MB, free: 5.41 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.354/1.354, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001372/0.001372, allocations: 51.92 kB / 280 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09197, allocations: 46.64 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01591/0.1079, allocations: 13.73 MB / 340.3 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.1212, allocations: 12.48 MB / 352.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.1214, allocations: 0 / 352.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.1218, allocations: 71.67 kB / 352.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.122, allocations: 75.48 kB / 352.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01103/0.1331, allocations: 4 MB / 356.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003603/0.1334, allocations: 270.9 kB / 357.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.487e-05/0.1335, allocations: 9.438 kB / 357.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004153/0.1339, allocations: 187.4 kB / 357.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.134, allocations: 71.69 kB / 357.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.1341, allocations: 8 kB / 357.5 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01137/0.1455, allocations: 6.899 MB / 364.4 MB, free: 15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.848e-05/0.1456, allocations: 27.89 kB / 364.4 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.1457, allocations: 63.73 kB / 364.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00783/0.1536, allocations: 3.887 MB / 368.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1536, allocations: 0 / 368.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1536, allocations: 3.938 kB / 368.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1536, allocations: 0 / 368.4 MB, free: 11.01 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.004618/0.1583, allocations: 1.146 MB / 369.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1583, allocations: 8.031 kB / 369.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000481/0.1588, allocations: 48.8 kB / 369.6 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.159, allocations: 220.1 kB / 369.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.1591, allocations: 16.38 kB / 369.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.1591, allocations: 20.36 kB / 369.8 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.1604, allocations: 384 kB / 370.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1604, allocations: 0 / 370.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.1605, allocations: 8 kB / 370.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.1605, allocations: 4 kB / 370.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1619, allocations: 351.5 kB / 370.5 MB, free: 8.707 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.001278/0.1632, allocations: 1.191 MB / 371.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008053/0.164, allocations: 283.7 kB / 372 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.1643, allocations: 110.9 kB / 372.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2332/0.3975, allocations: 47.44 MB / 419.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3976, allocations: 41.5 kB / 419.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.3976, allocations: 0 / 419.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.00622/0.4038, allocations: 1.584 MB / 421.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.4039, allocations: 106.8 kB / 421.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.095e-05/0.4039, allocations: 131.6 kB / 421.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.404, allocations: 33.58 kB / 421.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.16e-05/0.404, allocations: 102.5 kB / 421.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.4041, allocations: 116.6 kB / 421.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/0.4042, allocations: 70 kB / 421.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.4042, allocations: 321.5 kB / 422 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003334/0.4046, allocations: 139.4 kB / 422.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.4049, allocations: 194.6 kB / 422.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006801/0.4056, allocations: 350.6 kB / 422.7 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4056, allocations: 4 kB / 422.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009288/0.4066, allocations: 425.5 kB / 423.1 MB, free: 288 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4066, allocations: 4 kB / 423.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4066, allocations: 0.8125 kB / 423.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.4068, allocations: 44.11 kB / 423.2 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.4073, allocations: 89.31 kB / 423.3 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003577/0.4076, allocations: 0.5453 MB / 423.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.4079, allocations: 35.44 kB / 423.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.408, allocations: 15.56 kB / 423.9 MB, free: 15.57 MB / 334.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.0001558/0.4082, allocations: 138.2 kB / 424 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.4083, allocations: 20.92 kB / 424 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002013/0.4103, allocations: 1.455 MB / 425.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/0.4103, allocations: 22.78 kB / 425.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4103, allocations: 0 / 425.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4103, allocations: 3.062 kB / 425.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.413, allocations: 1.98 MB / 427.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.4131, allocations: 0 / 427.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.4135, allocations: 78.81 kB / 427.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/0.4138, allocations: 80.25 kB / 427.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.4139, allocations: 12.81 kB / 427.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003548/0.4142, allocations: 0.5948 MB / 428.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4142, allocations: 0 / 428.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.4162, allocations: 1.692 MB / 429.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.151e-05/0.4163, allocations: 128.3 kB / 430.1 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.4163, allocations: 11.97 kB / 430.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.4167, allocations: 23.92 kB / 430.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.4168, allocations: 31.89 kB / 430.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.4168, allocations: 19.17 kB / 430.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.812e-05/0.4169, allocations: 90 kB / 430.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4169, allocations: 0 / 430.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002649/0.4195, allocations: 0.9576 MB / 431.2 MB, free: 10.02 MB / 334.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.004379/0.4239, allocations: 1.135 MB / 432.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.4254, allocations: 0.6163 MB / 432.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4254, allocations: 4.062 kB / 432.9 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007767/0.4262, allocations: 0.5044 MB / 433.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007909/0.427, allocations: 78.17 kB / 433.5 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.4293, allocations: 1.491 MB / 435 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.4297, allocations: 0.8178 MB / 435.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.4301, allocations: 138.8 kB / 436 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.4303, allocations: 39.41 kB / 436 MB, free: 6.023 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4303, allocations: 4 kB / 436 MB, free: 6.02 MB / 334.1 MB Notification: Performance of Templates: time 0.04533/0.4756, allocations: 35.92 MB / 471.9 MB, free: 2.211 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","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches