Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 82.23 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1217, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2941/0.4158, allocations: 39.17 MB / 0.5071 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02656/0.4424, allocations: 20.16 MB / 0.5268 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.4435, allocations: 19.5 kB / 0.5268 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.4449, allocations: 444.6 kB / 0.5273 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01664/0.4616, allocations: 5.131 MB / 0.5323 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008421/0.47, allocations: 2.561 MB / 0.5348 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.4734, allocations: 1.997 MB / 0.5367 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009409/0.4744, allocations: 0.4966 MB / 0.5372 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009318/0.4837, allocations: 4.161 MB / 0.5413 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01024/0.494, allocations: 5.439 MB / 0.5466 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.4943, allocations: 72.06 kB / 0.5467 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0149/0.5092, allocations: 7.236 MB / 0.5537 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000546/0.5098, allocations: 283.1 kB / 0.554 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009944/0.5108, allocations: 462 kB / 0.5544 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.5257, allocations: 5.122 MB / 0.5594 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.5258, allocations: 0 / 0.5594 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.5258, allocations: 0 / 0.5594 GB, free: 6.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.5258, allocations: 0 / 0.5594 GB, free: 6.387 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004217/0.53, allocations: 1.665 MB / 0.5611 GB, free: 4.672 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.5301, allocations: 8.031 kB / 0.5611 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001397/0.5302, allocations: 126.6 kB / 0.5612 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002268/0.5325, allocations: 295.7 kB / 0.5615 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009271/0.5334, allocations: 0.556 MB / 0.562 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.5336, allocations: 109.5 kB / 0.5621 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.194e-05/0.5337, allocations: 63.88 kB / 0.5622 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/0.536, allocations: 1.169 MB / 0.5633 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.536, allocations: 7.938 kB / 0.5633 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-05/0.5361, allocations: 28 kB / 0.5634 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-05/0.5362, allocations: 41.28 kB / 0.5634 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.5378, allocations: 0.8479 MB / 0.5642 GB, free: 1.281 MB / 398.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.006126/0.5439, allocations: 5.5 MB / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.5453, allocations: 0.5884 MB / 0.5702 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.5456, allocations: 232.7 kB / 0.5704 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1028/0.6484, allocations: 51.32 MB / 0.6205 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.6485, allocations: 38.56 kB / 0.6205 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 4.068e-06/0.6485, allocations: 0 / 0.6205 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.005339/0.6538, allocations: 1.932 MB / 0.6224 GB, free: 14.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.365e-05/0.654, allocations: 170.1 kB / 0.6226 GB, free: 14.66 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007828/0.6547, allocations: 0.621 MB / 0.6232 GB, free: 14.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.645e-05/0.6548, allocations: 33.7 kB / 0.6232 GB, free: 14 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.6551, allocations: 399.2 kB / 0.6236 GB, free: 13.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.6553, allocations: 169.7 kB / 0.6238 GB, free: 13.43 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.6555, allocations: 154.5 kB / 0.6239 GB, free: 13.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.6557, allocations: 374.8 kB / 0.6243 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.6561, allocations: 229.9 kB / 0.6245 GB, free: 12.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006065/0.6567, allocations: 0.564 MB / 0.6251 GB, free: 11.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.6577, allocations: 0.8407 MB / 0.6259 GB, free: 10.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.6577, allocations: 4 kB / 0.6259 GB, free: 10.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001456/0.6592, allocations: 0.8746 MB / 0.6267 GB, free: 10.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.6592, allocations: 8 kB / 0.6267 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.6593, allocations: 12 kB / 0.6268 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002878/0.6596, allocations: 61.64 kB / 0.6268 GB, free: 9.988 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.6607, allocations: 279.6 kB / 0.6271 GB, free: 9.715 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.6624, allocations: 2.079 MB / 0.6291 GB, free: 7.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/0.6629, allocations: 35.92 kB / 0.6291 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.421e-05/0.663, allocations: 40 kB / 0.6292 GB, free: 7.402 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.0004395/0.6635, allocations: 269.5 kB / 0.6294 GB, free: 7.129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/0.6637, allocations: 71.16 kB / 0.6295 GB, free: 7.059 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/0.6664, allocations: 2.212 MB / 0.6317 GB, free: 4.832 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-05/0.6664, allocations: 39.81 kB / 0.6317 GB, free: 4.793 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.6664, allocations: 11.97 kB / 0.6317 GB, free: 4.781 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.6665, allocations: 0 / 0.6317 GB, free: 4.781 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003924/0.6704, allocations: 3.285 MB / 0.6349 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.6704, allocations: 5.25 kB / 0.6349 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009348/0.6714, allocations: 191.8 kB / 0.6351 GB, free: 1.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003505/0.6717, allocations: 88.62 kB / 0.6352 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.6718, allocations: 15.98 kB / 0.6352 GB, free: 1.129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.6733, allocations: 2.087 MB / 0.6372 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6733, allocations: 0 / 0.6372 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.6755, allocations: 1.985 MB / 0.6392 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.6759, allocations: 247.7 kB / 0.6394 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.6761, allocations: 27.78 kB / 0.6395 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005423/0.6766, allocations: 35.97 kB / 0.6395 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.6767, allocations: 32.39 kB / 0.6395 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.6768, allocations: 23.98 kB / 0.6395 GB, free: 12.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007169/0.6775, allocations: 0.5107 MB / 0.64 GB, free: 11.98 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6775, allocations: 0 / 0.64 GB, free: 11.98 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004179/0.6817, allocations: 1.085 MB / 0.6411 GB, free: 10.89 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.009203/0.6909, allocations: 3.665 MB / 0.6447 GB, free: 7.203 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.6938, allocations: 1.013 MB / 0.6457 GB, free: 6.188 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.651e-05/0.6939, allocations: 0 / 0.6457 GB, free: 6.188 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.6956, allocations: 0.6839 MB / 0.6463 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.6988, allocations: 393.4 kB / 0.6467 GB, free: 5.137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/0.7148, allocations: 8.246 MB / 0.6548 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007625/0.7156, allocations: 1.117 MB / 0.6559 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001006/0.7166, allocations: 442.1 kB / 0.6563 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/0.7171, allocations: 403.3 kB / 0.6567 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/0.7171, allocations: 0 / 0.6567 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/0.825, allocations: 56.27 MB / 0.7116 GB, free: 2.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.75, allocations: 15.48 kB / 0.7116 GB, free: 2.465 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.h,volume.medium.p Variables in the result:time,volume.medium.h,volume.medium.p