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.001366/0.001366, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001508/0.001508, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.001335/0.001335, allocations: 59.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0828/0.08415, allocations: 46.63 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.2128/0.297, allocations: 12.91 MB / 387.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.309, allocations: 11.54 MB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.3093, allocations: 1.281 kB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004517/0.3098, allocations: 80.45 kB / 399.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003769/0.3102, allocations: 75.8 kB / 399.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01804/0.3282, allocations: 5.074 MB / 404.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004912/0.3287, allocations: 236.1 kB / 404.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.724e-05/0.3288, allocations: 8.328 kB / 404.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004865/0.3293, allocations: 198.4 kB / 404.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.3295, allocations: 68.22 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.3295, allocations: 7.156 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01614/0.3456, allocations: 6.984 MB / 411.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3458, allocations: 33.67 kB / 411.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.346, allocations: 68.05 kB / 411.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.3575, allocations: 3.86 MB / 415.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3576, allocations: 4 kB / 415.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3576, allocations: 1.25 kB / 415.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3576, allocations: 0 / 415.8 MB, free: 5.602 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.005799/0.3634, allocations: 1.153 MB / 416.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3635, allocations: 12 kB / 416.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.3635, allocations: 44.81 kB / 417 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004825/0.364, allocations: 49.8 kB / 417 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.3643, allocations: 220.5 kB / 417.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.3643, allocations: 9.875 kB / 417.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.3644, allocations: 18.88 kB / 417.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.3657, allocations: 389.5 kB / 417.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.3657, allocations: 1.375 kB / 417.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.3657, allocations: 6.75 kB / 417.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3657, allocations: 2.75 kB / 417.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.3672, allocations: 354.4 kB / 418 MB, free: 4.016 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.001344/0.3686, allocations: 1.194 MB / 419.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/0.3694, allocations: 274.4 kB / 419.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.3697, allocations: 117.5 kB / 419.6 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09885/0.4686, allocations: 47.65 MB / 467.2 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/0.4687, allocations: 38.56 kB / 467.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.415e-06/0.4687, allocations: 0 / 467.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007094/0.4758, allocations: 1.569 MB / 468.8 MB, free: 11.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.4759, allocations: 106.8 kB / 468.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.476, allocations: 137.5 kB / 469.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.476, allocations: 33.64 kB / 469.1 MB, free: 11.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.4761, allocations: 100.6 kB / 469.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.8e-05/0.4762, allocations: 118.3 kB / 469.3 MB, free: 11.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.4763, allocations: 73.67 kB / 469.4 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.4764, allocations: 322.8 kB / 469.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.4768, allocations: 127.9 kB / 469.8 MB, free: 10.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.4773, allocations: 206.5 kB / 470 MB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008144/0.4781, allocations: 346.5 kB / 470.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4781, allocations: 4 kB / 470.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001086/0.4792, allocations: 429.9 kB / 470.8 MB, free: 9.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4792, allocations: 8 kB / 470.8 MB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4793, allocations: 1.594 kB / 470.8 MB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002381/0.4795, allocations: 36.84 kB / 470.8 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004595/0.48, allocations: 87.88 kB / 470.9 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003705/0.4804, allocations: 0.5525 MB / 471.5 MB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.4807, allocations: 19.98 kB / 471.5 MB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.4807, allocations: 20.86 kB / 471.5 MB, free: 9.047 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.0001446/0.4809, allocations: 137.7 kB / 471.6 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.883e-05/0.481, allocations: 15.81 kB / 471.7 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.4832, allocations: 1.449 MB / 473.1 MB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/0.4832, allocations: 23.95 kB / 473.1 MB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4832, allocations: 0 / 473.1 MB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4832, allocations: 4 kB / 473.1 MB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.4861, allocations: 1.979 MB / 475.1 MB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4861, allocations: 0 / 475.1 MB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.4866, allocations: 87.86 kB / 475.2 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003067/0.4869, allocations: 68.92 kB / 475.3 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/0.4869, allocations: 17.17 kB / 475.3 MB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003326/0.4873, allocations: 0.5913 MB / 475.9 MB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4873, allocations: 0 / 475.9 MB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.4895, allocations: 1.692 MB / 477.6 MB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.4896, allocations: 128.8 kB / 477.7 MB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.4896, allocations: 12 kB / 477.7 MB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.49, allocations: 27.95 kB / 477.7 MB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.4901, allocations: 31.91 kB / 477.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.4901, allocations: 19.92 kB / 477.8 MB, free: 2.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.366e-05/0.4902, allocations: 91.27 kB / 477.9 MB, free: 2.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4902, allocations: 4 kB / 477.9 MB, free: 2.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003716/0.4939, allocations: 0.9527 MB / 478.8 MB, free: 1.559 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.008654/0.5026, allocations: 3.269 MB / 482.1 MB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.504, allocations: 0.6047 MB / 482.7 MB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.504, allocations: 4 kB / 482.7 MB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007873/0.5048, allocations: 0.5131 MB / 483.2 MB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.5056, allocations: 76.12 kB / 483.3 MB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007944/0.5135, allocations: 3.897 MB / 487.2 MB, free: 8.996 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.5139, allocations: 0.8177 MB / 488 MB, free: 8.152 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003652/0.5143, allocations: 137.8 kB / 488.1 MB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.5146, allocations: 131.4 kB / 488.3 MB, free: 7.887 MB / 414.1 MB Notification: Performance of SimCode: time 5e-07/0.5146, allocations: 0 / 488.3 MB, free: 7.887 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07671/0.5913, allocations: 40.52 MB / 0.5164 GB, free: 15.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.24, allocations: 8 kB / 0.5164 GB, free: 15.24 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