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.001332/0.001331, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.001191/0.001191, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.276/1.276, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001163/0.001164, allocations: 51.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08108/0.08225, allocations: 46.62 MB / 374.6 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1864/0.2687, allocations: 12.92 MB / 387.5 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.2801, allocations: 11.53 MB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.2803, allocations: 1.125 kB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003563/0.2807, allocations: 70.83 kB / 399.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.2811, allocations: 93.28 kB / 399.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01669/0.2978, allocations: 5.063 MB / 404.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.2982, allocations: 233.5 kB / 404.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.2982, allocations: 20.12 kB / 404.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.2986, allocations: 187.8 kB / 404.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.2987, allocations: 69.67 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.2988, allocations: 6.781 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01402/0.3128, allocations: 6.987 MB / 411.8 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.357e-05/0.3129, allocations: 38.47 kB / 411.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.3131, allocations: 67.56 kB / 411.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009155/0.3222, allocations: 3.874 MB / 415.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3223, allocations: 1.594 kB / 415.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3223, allocations: 0 / 415.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.3223, allocations: 0 / 415.8 MB, free: 5.578 MB / 334.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.005075/0.3274, allocations: 1.167 MB / 416.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3274, allocations: 9.625 kB / 416.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.168e-05/0.3275, allocations: 52.23 kB / 417 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004773/0.328, allocations: 53.67 kB / 417 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3283, allocations: 224.5 kB / 417.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.3283, allocations: 11.25 kB / 417.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.3284, allocations: 18 kB / 417.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3297, allocations: 381.7 kB / 417.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3297, allocations: 2.484 kB / 417.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.3298, allocations: 9.219 kB / 417.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3298, allocations: 9.688 kB / 417.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.3312, allocations: 353.3 kB / 418 MB, free: 3.961 MB / 334.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.001342/0.3326, allocations: 1.186 MB / 419.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000854/0.3334, allocations: 278.7 kB / 419.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/0.3337, allocations: 116.6 kB / 419.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09516/0.4289, allocations: 47.65 MB / 467.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/0.429, allocations: 46.5 kB / 467.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.429, allocations: 0 / 467.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006739/0.4357, allocations: 1.581 MB / 468.9 MB, free: 11.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.4358, allocations: 110.9 kB / 469 MB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.463e-05/0.4359, allocations: 117.8 kB / 469.1 MB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.4359, allocations: 37.64 kB / 469.1 MB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.436, allocations: 105 kB / 469.2 MB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.45e-05/0.4361, allocations: 122.9 kB / 469.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.4362, allocations: 65.69 kB / 469.4 MB, free: 11.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.799e-05/0.4363, allocations: 330.8 kB / 469.8 MB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.4367, allocations: 135.9 kB / 469.9 MB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004289/0.4372, allocations: 202.5 kB / 470.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007908/0.438, allocations: 350.5 kB / 470.4 MB, free: 10.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.438, allocations: 0 / 470.4 MB, free: 10.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001028/0.439, allocations: 426 kB / 470.8 MB, free: 9.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.439, allocations: 4 kB / 470.8 MB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.4391, allocations: 8.203 kB / 470.9 MB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/0.4393, allocations: 40.78 kB / 470.9 MB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.4398, allocations: 91.88 kB / 471 MB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003485/0.4401, allocations: 0.5446 MB / 471.5 MB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.4404, allocations: 20.08 kB / 471.6 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.4405, allocations: 19.98 kB / 471.6 MB, free: 8.984 MB / 398.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.0001433/0.4406, allocations: 133.8 kB / 471.7 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.4407, allocations: 15.91 kB / 471.7 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.4427, allocations: 1.465 MB / 473.2 MB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/0.4428, allocations: 15.97 kB / 473.2 MB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4428, allocations: 4 kB / 473.2 MB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4428, allocations: 3.984 kB / 473.2 MB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/0.4456, allocations: 1.975 MB / 475.2 MB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4456, allocations: 4 kB / 475.2 MB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004329/0.446, allocations: 83.86 kB / 475.3 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002988/0.4463, allocations: 68.75 kB / 475.3 MB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.4464, allocations: 15.98 kB / 475.3 MB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003307/0.4467, allocations: 0.5874 MB / 475.9 MB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.4467, allocations: 5.531 kB / 475.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/0.4488, allocations: 1.687 MB / 477.6 MB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-05/0.4489, allocations: 132.6 kB / 477.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.93e-05/0.449, allocations: 9.078 kB / 477.8 MB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003575/0.4493, allocations: 23.97 kB / 477.8 MB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.164e-05/0.4494, allocations: 27.95 kB / 477.8 MB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.4494, allocations: 23.98 kB / 477.8 MB, free: 2.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.925e-05/0.4495, allocations: 95.2 kB / 477.9 MB, free: 2.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4495, allocations: 0 / 477.9 MB, free: 2.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003386/0.4529, allocations: 0.9669 MB / 478.9 MB, free: 1.48 MB / 398.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.007307/0.4602, allocations: 3.29 MB / 482.2 MB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.4617, allocations: 0.6089 MB / 482.8 MB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.4618, allocations: 0 / 482.8 MB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000779/0.4625, allocations: 0.509 MB / 483.3 MB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007869/0.4633, allocations: 75.75 kB / 483.4 MB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007094/0.4705, allocations: 3.914 MB / 487.3 MB, free: 8.883 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.4708, allocations: 0.8217 MB / 488.1 MB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000363/0.4712, allocations: 141.7 kB / 488.3 MB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.4714, allocations: 127.4 kB / 488.4 MB, free: 7.77 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4714, allocations: 4 kB / 488.4 MB, free: 7.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0732/0.5446, allocations: 40.52 MB / 0.5165 GB, free: 15.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.94, allocations: 8 kB / 0.5165 GB, free: 15.12 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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