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.00104/0.00104, allocations: 118.6 kB / 17.28 MB, free: 6.219 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.001092/0.001092, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.334/1.334, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.002012/0.002012, allocations: 47.92 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1104, allocations: 46.63 MB / 326.8 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01604/0.1265, allocations: 13.04 MB / 339.8 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.1388, allocations: 11.61 MB / 351.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1389, allocations: 4 kB / 351.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003483/0.1393, allocations: 59.69 kB / 351.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.1396, allocations: 79.5 kB / 351.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01156/0.1512, allocations: 4.449 MB / 356 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003366/0.1516, allocations: 231 kB / 356.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.599e-05/0.1516, allocations: 9.453 kB / 356.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.152, allocations: 195.4 kB / 356.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.1521, allocations: 75.69 kB / 356.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.1522, allocations: 12 kB / 356.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01134/0.1635, allocations: 6.879 MB / 363.4 MB, free: 72 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1637, allocations: 19.92 kB / 363.4 MB, free: 52 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.1639, allocations: 71.78 kB / 363.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007988/0.1719, allocations: 3.895 MB / 367.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1719, allocations: 4 kB / 367.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1719, allocations: 0 / 367.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1719, allocations: 0 / 367.4 MB, free: 12.07 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.004495/0.1764, allocations: 1.142 MB / 368.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1765, allocations: 8.031 kB / 368.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004655/0.1769, allocations: 48.8 kB / 368.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1772, allocations: 228.1 kB / 368.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.1772, allocations: 12.38 kB / 368.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.1773, allocations: 16.38 kB / 368.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.1785, allocations: 380 kB / 369.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.1785, allocations: 0 / 369.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.1786, allocations: 8 kB / 369.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1786, allocations: 4 kB / 369.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.1799, allocations: 355.5 kB / 369.6 MB, free: 9.777 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.00129/0.1812, allocations: 1.191 MB / 370.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.182, allocations: 279.8 kB / 371 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.1823, allocations: 114.9 kB / 371.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2275/0.4098, allocations: 47.45 MB / 418.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.4099, allocations: 37.97 kB / 418.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.4099, allocations: 0 / 418.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.00638/0.4163, allocations: 1.583 MB / 420.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.4164, allocations: 113.9 kB / 420.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.396e-05/0.4165, allocations: 124.6 kB / 420.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.4165, allocations: 32.89 kB / 420.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.97e-05/0.4165, allocations: 106.6 kB / 420.6 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.277e-05/0.4166, allocations: 119.3 kB / 420.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-05/0.4167, allocations: 66.44 kB / 420.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.4168, allocations: 333.3 kB / 421.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.4171, allocations: 138.9 kB / 421.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.4174, allocations: 192 kB / 421.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.4181, allocations: 353.9 kB / 421.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4181, allocations: 0 / 421.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009373/0.4191, allocations: 425.1 kB / 422.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4191, allocations: 4 kB / 422.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4191, allocations: 4 kB / 422.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002312/0.4193, allocations: 36.3 kB / 422.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.4198, allocations: 91.31 kB / 422.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002543/0.42, allocations: 0.5496 MB / 422.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.4203, allocations: 23.86 kB / 422.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.4204, allocations: 19.92 kB / 422.9 MB, free: 1.055 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.0001241/0.4205, allocations: 136.2 kB / 423 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.593e-05/0.4206, allocations: 19.75 kB / 423 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.4223, allocations: 1.458 MB / 424.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.4224, allocations: 19.59 kB / 424.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.4224, allocations: 0 / 424.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4224, allocations: 3.984 kB / 424.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002618/0.425, allocations: 1.977 MB / 426.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.4251, allocations: 0 / 426.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.4255, allocations: 83.11 kB / 426.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002988/0.4258, allocations: 71.55 kB / 426.7 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.4259, allocations: 12.92 kB / 426.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003186/0.4262, allocations: 0.5942 MB / 427.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4262, allocations: 4.094 kB / 427.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.4281, allocations: 1.685 MB / 428.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.838e-05/0.4282, allocations: 136.2 kB / 429.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.4283, allocations: 10.5 kB / 429.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.4287, allocations: 27.58 kB / 429.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.4287, allocations: 31.47 kB / 429.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.4288, allocations: 15.98 kB / 429.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.924e-05/0.4288, allocations: 97.05 kB / 429.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4288, allocations: 0 / 429.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002469/0.4313, allocations: 0.9603 MB / 430.2 MB, free: 11.5 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.003806/0.4351, allocations: 1.133 MB / 431.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.4366, allocations: 0.6293 MB / 432 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4366, allocations: 0 / 432 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007226/0.4374, allocations: 0.5061 MB / 432.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007528/0.4381, allocations: 81.72 kB / 432.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.4404, allocations: 1.499 MB / 434.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.4408, allocations: 0.8178 MB / 434.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003891/0.4412, allocations: 135.7 kB / 435 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.4413, allocations: 35.42 kB / 435.1 MB, free: 7.266 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4413, allocations: 0.6562 kB / 435.1 MB, free: 7.266 MB / 334.1 MB Notification: Performance of Templates: time 0.04804/0.4894, allocations: 36.26 MB / 471.3 MB, free: 3.059 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