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: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_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.001197/0.001197, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001182/0.001182, allocations: 191 kB / 18 MB, free: 5.102 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 51.91 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2652, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01584/0.281, allocations: 12.91 MB / 413.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.2951, allocations: 11.54 MB / 424.7 MB, free: 296 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2953, allocations: 4 kB / 424.7 MB, free: 292 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.2957, allocations: 75.55 kB / 424.7 MB, free: 216 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003802/0.2962, allocations: 83.38 kB / 424.8 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01376/0.3099, allocations: 5.084 MB / 429.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004073/0.3104, allocations: 238.9 kB / 430.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.663e-05/0.3104, allocations: 13.39 kB / 430.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004973/0.3109, allocations: 195.4 kB / 430.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.3111, allocations: 75.69 kB / 430.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.3111, allocations: 4 kB / 430.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/0.3247, allocations: 6.989 MB / 437.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.901e-05/0.3248, allocations: 27.91 kB / 437.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.3249, allocations: 67.67 kB / 437.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009025/0.334, allocations: 3.882 MB / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.334, allocations: 0 / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.334, allocations: 0 / 441.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3341, allocations: 0 / 441.4 MB, free: 15.55 MB / 366.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.004878/0.3389, allocations: 1.163 MB / 442.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.339, allocations: 8.031 kB / 442.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.075e-05/0.3391, allocations: 54.67 kB / 442.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005079/0.3396, allocations: 52.8 kB / 442.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.34, allocations: 216.2 kB / 442.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.34, allocations: 16.59 kB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.3401, allocations: 20.08 kB / 442.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3414, allocations: 388.9 kB / 443.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.3414, allocations: 0 / 443.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.635e-05/0.3415, allocations: 4 kB / 443.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3415, allocations: 4 kB / 443.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.3429, allocations: 359.5 kB / 443.6 MB, free: 13.16 MB / 366.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.001513/0.3445, allocations: 1.188 MB / 444.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008771/0.3454, allocations: 271.8 kB / 445.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.3457, allocations: 110.9 kB / 445.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0956/0.4413, allocations: 47.66 MB / 492.9 MB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.4414, allocations: 42.56 kB / 492.9 MB, free: 6.137 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.695e-06/0.4414, allocations: 0 / 492.9 MB, free: 6.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00696/0.4483, allocations: 1.58 MB / 494.5 MB, free: 4.504 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.4484, allocations: 110.8 kB / 494.6 MB, free: 4.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.4485, allocations: 117.7 kB / 494.7 MB, free: 4.246 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.222e-05/0.4486, allocations: 37.7 kB / 494.7 MB, free: 4.203 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.4487, allocations: 108.5 kB / 494.8 MB, free: 4.094 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.4488, allocations: 130.9 kB / 495 MB, free: 3.965 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.4489, allocations: 69.47 kB / 495 MB, free: 3.891 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.449, allocations: 326.8 kB / 495.4 MB, free: 3.562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/0.4494, allocations: 131.9 kB / 495.5 MB, free: 3.434 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.4498, allocations: 202.5 kB / 495.7 MB, free: 3.211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008207/0.4507, allocations: 354.6 kB / 496 MB, free: 2.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4507, allocations: 0 / 496 MB, free: 2.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001123/0.4518, allocations: 426 kB / 496.4 MB, free: 2.414 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.4518, allocations: 4 kB / 496.4 MB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4519, allocations: 4 kB / 496.5 MB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002482/0.4521, allocations: 36.83 kB / 496.5 MB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.4526, allocations: 83.88 kB / 496.6 MB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004139/0.453, allocations: 0.5641 MB / 497.1 MB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.4533, allocations: 20.02 kB / 497.2 MB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.4534, allocations: 19.98 kB / 497.2 MB, free: 1.656 MB / 414.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.0001814/0.4536, allocations: 137.8 kB / 497.3 MB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.4537, allocations: 20 kB / 497.3 MB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.4559, allocations: 1.454 MB / 498.8 MB, free: 24 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/0.456, allocations: 15.97 kB / 498.8 MB, free: 8 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.456, allocations: 4 kB / 498.8 MB, free: 4 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.456, allocations: 3.984 kB / 498.8 MB, free: 0 / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.4591, allocations: 1.979 MB / 0.489 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.4591, allocations: 7.938 kB / 0.4891 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.4596, allocations: 83.86 kB / 0.4891 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003268/0.4599, allocations: 72.88 kB / 0.4892 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.936e-05/0.46, allocations: 15.98 kB / 0.4892 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003677/0.4603, allocations: 0.5835 MB / 0.4898 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.4604, allocations: 4.406 kB / 0.4898 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.4626, allocations: 1.697 MB / 0.4915 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.873e-05/0.4628, allocations: 128.6 kB / 0.4916 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.4628, allocations: 12 kB / 0.4916 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.4632, allocations: 31.86 kB / 0.4916 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.4633, allocations: 27.95 kB / 0.4916 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.4633, allocations: 19.98 kB / 0.4917 GB, free: 11.19 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.524e-05/0.4634, allocations: 95.2 kB / 0.4918 GB, free: 11.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4634, allocations: 0 / 0.4918 GB, free: 11.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002502/0.4659, allocations: 0.963 MB / 0.4927 GB, free: 10.13 MB / 430.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.00691/0.4728, allocations: 3.287 MB / 0.4959 GB, free: 6.801 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.4743, allocations: 0.6041 MB / 0.4965 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4744, allocations: 0 / 0.4965 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008219/0.4752, allocations: 0.513 MB / 0.497 GB, free: 5.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007989/0.476, allocations: 80.27 kB / 0.4971 GB, free: 5.602 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007289/0.4833, allocations: 3.921 MB / 0.5009 GB, free: 1.535 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.4837, allocations: 0.8178 MB / 0.5017 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003844/0.4841, allocations: 141.7 kB / 0.5018 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.4844, allocations: 123.4 kB / 0.502 GB, free: 436 kB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4844, allocations: 0 / 0.502 GB, free: 436 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2681/0.7525, allocations: 40.54 MB / 0.5415 GB, free: 139.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.42, allocations: 13.5 kB / 0.5416 GB, free: 139.3 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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