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: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 110.7 kB / 17.28 MB, free: 6.176 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.001564/0.001564, allocations: 189.3 kB / 18.2 MB, free: 5.254 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.294/1.294, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001092/0.001092, allocations: 44.16 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07939/0.0805, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01396/0.0945, allocations: 13.03 MB / 339.9 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.1064, allocations: 11.61 MB / 351.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.1065, allocations: 4 kB / 351.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.1069, allocations: 67.67 kB / 351.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002667/0.1072, allocations: 79.48 kB / 351.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01287/0.1201, allocations: 4.453 MB / 356.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.1204, allocations: 235 kB / 356.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.034e-05/0.1205, allocations: 13.38 kB / 356.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.1209, allocations: 195.3 kB / 356.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.121, allocations: 71.75 kB / 356.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.121, allocations: 8 kB / 356.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01036/0.1314, allocations: 6.88 MB / 363.5 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-05/0.1315, allocations: 35.89 kB / 363.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1316, allocations: 67.73 kB / 363.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007335/0.139, allocations: 3.891 MB / 367.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.139, allocations: 0 / 367.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.139, allocations: 0 / 367.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1391, allocations: 0 / 367.5 MB, free: 11.95 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.004321/0.1434, allocations: 1.139 MB / 368.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.1434, allocations: 12.03 kB / 368.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.457e-05/0.1435, allocations: 46.73 kB / 368.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/0.144, allocations: 52.8 kB / 368.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/0.1443, allocations: 220.1 kB / 369 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.1443, allocations: 8.375 kB / 369 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.674e-05/0.1443, allocations: 16.12 kB / 369 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.1455, allocations: 384.1 kB / 369.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1456, allocations: 11.86 kB / 369.4 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.1456, allocations: 8 kB / 369.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1456, allocations: 4 kB / 369.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.1469, allocations: 351.6 kB / 369.7 MB, free: 9.594 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.001256/0.1482, allocations: 1.191 MB / 370.9 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000783/0.149, allocations: 279.8 kB / 371.2 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.1493, allocations: 106.9 kB / 371.3 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2118/0.3611, allocations: 47.44 MB / 418.7 MB, free: 20.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.3612, allocations: 50.3 kB / 418.8 MB, free: 20.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.3612, allocations: 0 / 418.8 MB, free: 20.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006328/0.3675, allocations: 1.579 MB / 420.4 MB, free: 18.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.3676, allocations: 109.4 kB / 420.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.267e-05/0.3677, allocations: 117.8 kB / 420.6 MB, free: 18.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.3677, allocations: 29.7 kB / 420.6 MB, free: 18.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.898e-05/0.3678, allocations: 102.3 kB / 420.7 MB, free: 18.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.874e-05/0.3678, allocations: 125.8 kB / 420.8 MB, free: 18.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.834e-05/0.3679, allocations: 61.69 kB / 420.9 MB, free: 18.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.368, allocations: 338.8 kB / 421.2 MB, free: 17.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003365/0.3683, allocations: 131.7 kB / 421.4 MB, free: 17.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.3687, allocations: 206.4 kB / 421.6 MB, free: 17.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006729/0.3694, allocations: 344.3 kB / 421.9 MB, free: 17.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.3694, allocations: 3.812 kB / 421.9 MB, free: 17.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009412/0.3703, allocations: 430.1 kB / 422.3 MB, free: 16.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3704, allocations: 8 kB / 422.3 MB, free: 16.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3704, allocations: 0 / 422.3 MB, free: 16.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.3706, allocations: 40.78 kB / 422.4 MB, free: 16.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000457/0.3711, allocations: 87.88 kB / 422.4 MB, free: 16.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002411/0.3713, allocations: 0.5494 MB / 423 MB, free: 16.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.3716, allocations: 20.02 kB / 423 MB, free: 16.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.3717, allocations: 23.83 kB / 423 MB, free: 16.02 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.0001105/0.3718, allocations: 137.7 kB / 423.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.243e-05/0.3719, allocations: 19.84 kB / 423.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.3736, allocations: 1.462 MB / 424.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.3736, allocations: 19.95 kB / 424.7 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3736, allocations: 4 kB / 424.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3737, allocations: 0 / 424.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.3759, allocations: 1.971 MB / 426.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3759, allocations: 4.125 kB / 426.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.3764, allocations: 83.86 kB / 426.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/0.3767, allocations: 64.8 kB / 426.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.3767, allocations: 15.98 kB / 426.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002072/0.3769, allocations: 0.5939 MB / 427.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3769, allocations: 4.031 kB / 427.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.3786, allocations: 1.693 MB / 429.1 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.3787, allocations: 132.4 kB / 429.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/0.3787, allocations: 11.94 kB / 429.2 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003874/0.3791, allocations: 24.02 kB / 429.3 MB, free: 9.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.3792, allocations: 31.97 kB / 429.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.3792, allocations: 15.98 kB / 429.3 MB, free: 9.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.408e-05/0.3793, allocations: 91.27 kB / 429.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.3793, allocations: 0 / 429.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002383/0.3816, allocations: 0.9641 MB / 430.4 MB, free: 8.613 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.006423/0.3881, allocations: 3.262 MB / 433.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.3896, allocations: 0.6283 MB / 434.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3896, allocations: 0 / 434.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006693/0.3903, allocations: 0.5125 MB / 434.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008138/0.3911, allocations: 75.91 kB / 434.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005964/0.3971, allocations: 4.075 MB / 438.9 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.3975, allocations: 0.8139 MB / 439.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003994/0.398, allocations: 138.6 kB / 439.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.3982, allocations: 131.4 kB / 440 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3982, allocations: 0 / 440 MB, free: 14.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06558/0.4638, allocations: 40.4 MB / 480.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.464, allocations: 212.3 kB / 480.6 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.97/4.434, allocations: 3.938 kB / 480.6 MB, free: 6.168 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/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