Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.0007783/0.0007838, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.0008173/0.0008173, allocations: 183.9 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002735, allocations: 8.344 kB / 300.8 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09465, allocations: 50.42 MB / 351.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0148/0.1095, allocations: 11.96 MB / 363.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.1223, allocations: 10.7 MB / 373.9 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1225, allocations: 4 kB / 373.9 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003645/0.1229, allocations: 59.69 kB / 374 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003673/0.1232, allocations: 71.5 kB / 374 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01165/0.1349, allocations: 3.872 MB / 377.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.1353, allocations: 238.9 kB / 378.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.1353, allocations: 9.453 kB / 378.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004238/0.1358, allocations: 187.2 kB / 378.3 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.1359, allocations: 67.75 kB / 378.4 MB, free: 480 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.136, allocations: 4 kB / 378.4 MB, free: 476 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01208/0.148, allocations: 6.649 MB / 385 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1482, allocations: 27.89 kB / 385.1 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.1483, allocations: 45.7 kB / 385.1 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005173/0.1535, allocations: 2.569 MB / 387.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.1535, allocations: 11.92 kB / 387.7 MB, free: 7.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1535, allocations: 3.938 kB / 387.7 MB, free: 7.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1535, allocations: 0 / 387.7 MB, free: 7.141 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.004769/0.1583, allocations: 1.111 MB / 388.8 MB, free: 5.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1584, allocations: 8.031 kB / 388.8 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004917/0.1589, allocations: 51.77 kB / 388.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.1592, allocations: 218.8 kB / 389.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/0.1592, allocations: 16.23 kB / 389.1 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.1593, allocations: 12 kB / 389.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1606, allocations: 398.4 kB / 389.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1606, allocations: 4 kB / 389.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.1606, allocations: 4 kB / 389.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.1607, allocations: 7.984 kB / 389.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.1621, allocations: 376.2 kB / 389.9 MB, free: 4.836 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.0015/0.1636, allocations: 1.195 MB / 391.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000818/0.1644, allocations: 292.3 kB / 391.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.1647, allocations: 114.9 kB / 391.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2572/0.4219, allocations: 47.87 MB / 439.3 MB, free: 57.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.422, allocations: 42.16 kB / 439.4 MB, free: 57.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.154e-06/0.422, allocations: 0 / 439.4 MB, free: 57.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.006077/0.4281, allocations: 1.615 MB / 441 MB, free: 56.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.4281, allocations: 110.7 kB / 441.1 MB, free: 56.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.061e-05/0.4282, allocations: 119.8 kB / 441.2 MB, free: 56.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.4282, allocations: 30.64 kB / 441.3 MB, free: 56.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.725e-05/0.4283, allocations: 110.2 kB / 441.4 MB, free: 56.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.011e-05/0.4284, allocations: 115.8 kB / 441.5 MB, free: 56.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.199e-05/0.4284, allocations: 7.375 kB / 441.5 MB, free: 56.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.415e-05/0.4284, allocations: 324.5 kB / 441.8 MB, free: 55.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.4288, allocations: 141.4 kB / 441.9 MB, free: 55.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.4292, allocations: 204.8 kB / 442.1 MB, free: 55.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/0.4295, allocations: 150.5 kB / 442.3 MB, free: 55.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4295, allocations: 1.281 kB / 442.3 MB, free: 55.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009113/0.4304, allocations: 427.4 kB / 442.7 MB, free: 55.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4305, allocations: 7.531 kB / 442.7 MB, free: 55.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4305, allocations: 224 / 442.7 MB, free: 55.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.4307, allocations: 43.3 kB / 442.8 MB, free: 55.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/0.4311, allocations: 100.7 kB / 442.9 MB, free: 55.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002336/0.4314, allocations: 0.5472 MB / 443.4 MB, free: 55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.4317, allocations: 22.89 kB / 443.4 MB, free: 55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.4317, allocations: 24.88 kB / 443.4 MB, free: 54.99 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.4318, allocations: 133.7 kB / 443.6 MB, free: 54.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.4319, allocations: 15.36 kB / 443.6 MB, free: 54.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.4336, allocations: 1.464 MB / 445.1 MB, free: 54.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.4336, allocations: 27.89 kB / 445.1 MB, free: 54.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4336, allocations: 0 / 445.1 MB, free: 54.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.4337, allocations: 1.281 kB / 445.1 MB, free: 54.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/0.436, allocations: 1.992 MB / 447.1 MB, free: 53.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.436, allocations: 3.906 kB / 447.1 MB, free: 53.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.4364, allocations: 86.89 kB / 447.2 MB, free: 53.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003075/0.4368, allocations: 79.5 kB / 447.2 MB, free: 53.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.4368, allocations: 15.67 kB / 447.3 MB, free: 53.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002209/0.437, allocations: 0.5913 MB / 447.8 MB, free: 53.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.437, allocations: 3.844 kB / 447.9 MB, free: 53.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4388, allocations: 1.7 MB / 449.6 MB, free: 52.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.4388, allocations: 131.2 kB / 449.7 MB, free: 52.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.4389, allocations: 6.875 kB / 449.7 MB, free: 52.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.4392, allocations: 28.83 kB / 449.7 MB, free: 52.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.4393, allocations: 30.36 kB / 449.7 MB, free: 52.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.4393, allocations: 14.67 kB / 449.8 MB, free: 52.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.532e-05/0.4394, allocations: 90.67 kB / 449.8 MB, free: 52.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4394, allocations: 2.5 kB / 449.9 MB, free: 52.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002137/0.4415, allocations: 0.9574 MB / 450.8 MB, free: 52.15 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003188/0.4447, allocations: 1.135 MB / 451.9 MB, free: 51.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.4457, allocations: 0.6118 MB / 452.6 MB, free: 50.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4458, allocations: 4.062 kB / 452.6 MB, free: 50.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006751/0.4464, allocations: 0.5126 MB / 453.1 MB, free: 50.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000729/0.4472, allocations: 80.8 kB / 453.2 MB, free: 50.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.4491, allocations: 1.556 MB / 454.7 MB, free: 48.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.4493, allocations: 0.8215 MB / 455.5 MB, free: 47.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003544/0.4496, allocations: 145.2 kB / 455.7 MB, free: 47.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.4498, allocations: 35.41 kB / 455.7 MB, free: 47.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4498, allocations: 1.312 kB / 455.7 MB, free: 47.82 MB / 350.1 MB Notification: Performance of Templates: time 0.03699/0.4868, allocations: 36.31 MB / 492 MB, free: 11.53 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches