Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.001482/0.001482, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001983/0.001983, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001769, allocations: 77.19 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1356, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.3088/0.4444, allocations: 39.18 MB / 0.5071 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02488/0.4694, allocations: 20.16 MB / 0.5268 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.4705, allocations: 19.38 kB / 0.5268 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.4719, allocations: 450.8 kB / 0.5273 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01689/0.4888, allocations: 5.121 MB / 0.5323 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007286/0.4961, allocations: 2.566 MB / 0.5348 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002407/0.4985, allocations: 1.986 MB / 0.5367 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006618/0.4992, allocations: 495.1 kB / 0.5372 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008891/0.5081, allocations: 4.161 MB / 0.5413 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01049/0.5187, allocations: 5.447 MB / 0.5466 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.5189, allocations: 70.69 kB / 0.5466 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01692/0.5359, allocations: 7.227 MB / 0.5537 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006271/0.5366, allocations: 283.1 kB / 0.554 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.5376, allocations: 454 kB / 0.5544 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.5534, allocations: 5.107 MB / 0.5594 GB, free: 6.496 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5534, allocations: 0 / 0.5594 GB, free: 6.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5534, allocations: 0 / 0.5594 GB, free: 6.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.5535, allocations: 0 / 0.5594 GB, free: 6.496 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.004382/0.5579, allocations: 1.692 MB / 0.561 GB, free: 4.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.5579, allocations: 8.031 kB / 0.5611 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.558, allocations: 118.6 kB / 0.5612 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002139/0.5602, allocations: 299.7 kB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008156/0.561, allocations: 0.5598 MB / 0.562 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.5612, allocations: 121.5 kB / 0.5621 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.5613, allocations: 67.92 kB / 0.5622 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002541/0.5638, allocations: 1.193 MB / 0.5633 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.5638, allocations: 11.94 kB / 0.5634 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.635e-05/0.5639, allocations: 28 kB / 0.5634 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.838e-05/0.564, allocations: 41.3 kB / 0.5634 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002581/0.5666, allocations: 1.023 MB / 0.5644 GB, free: 1.145 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.006365/0.573, allocations: 5.626 MB / 0.5699 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.5755, allocations: 0.7596 MB / 0.5707 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005876/0.5761, allocations: 285.6 kB / 0.5709 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03565/0.6118, allocations: 17.3 MB / 0.5878 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.6119, allocations: 46.45 kB / 0.5879 GB, free: 6.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.6119, allocations: 0 / 0.5879 GB, free: 6.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007282/0.6192, allocations: 2.273 MB / 0.5901 GB, free: 4.234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.908e-05/0.6193, allocations: 166.6 kB / 0.5903 GB, free: 4.035 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.6201, allocations: 0.6054 MB / 0.5908 GB, free: 3.426 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.6202, allocations: 37.7 kB / 0.5909 GB, free: 3.383 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.6204, allocations: 391.2 kB / 0.5913 GB, free: 2.992 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.6206, allocations: 181.5 kB / 0.5914 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.6208, allocations: 150.6 kB / 0.5916 GB, free: 2.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6209, allocations: 382.8 kB / 0.5919 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000613/0.6215, allocations: 277.8 kB / 0.5922 GB, free: 2.008 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.6224, allocations: 0.6044 MB / 0.5928 GB, free: 1.254 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.6238, allocations: 0.9026 MB / 0.5937 GB, free: 212 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.964e-06/0.6238, allocations: 8 kB / 0.5937 GB, free: 204 kB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001864/0.6257, allocations: 0.9647 MB / 0.5946 GB, free: 15.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.6257, allocations: 8 kB / 0.5946 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.6258, allocations: 12 kB / 0.5946 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002816/0.626, allocations: 60.83 kB / 0.5947 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.6273, allocations: 295.9 kB / 0.595 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.6289, allocations: 2.082 MB / 0.597 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.6295, allocations: 44.17 kB / 0.5971 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.736e-05/0.6296, allocations: 43.98 kB / 0.5971 GB, free: 12.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].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.0003651/0.63, allocations: 273.4 kB / 0.5974 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.6302, allocations: 75.09 kB / 0.5974 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003091/0.6333, allocations: 2.559 MB / 0.5999 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.924e-05/0.6333, allocations: 35.94 kB / 0.6 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.6333, allocations: 0 / 0.6 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.6334, allocations: 0 / 0.6 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004351/0.6377, allocations: 3.758 MB / 0.6036 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.6377, allocations: 4 kB / 0.6036 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.6389, allocations: 227.8 kB / 0.6039 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003384/0.6393, allocations: 100.5 kB / 0.6039 GB, free: 5.402 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.6393, allocations: 12 kB / 0.604 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.6408, allocations: 2.098 MB / 0.606 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.6408, allocations: 0 / 0.606 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002986/0.6438, allocations: 2.342 MB / 0.6083 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.6442, allocations: 259.3 kB / 0.6085 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.6443, allocations: 35.59 kB / 0.6086 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.6448, allocations: 31.97 kB / 0.6086 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.6449, allocations: 52.56 kB / 0.6087 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.645, allocations: 19.98 kB / 0.6087 GB, free: 368 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006989/0.6457, allocations: 0.5615 MB / 0.6092 GB, free: 15.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6457, allocations: 0 / 0.6092 GB, free: 15.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003183/0.6489, allocations: 1.097 MB / 0.6103 GB, free: 14.7 MB / 462.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: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.008342/0.6572, allocations: 4.005 MB / 0.6142 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00349/0.6608, allocations: 1.202 MB / 0.6154 GB, free: 9.477 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.6608, allocations: 0 / 0.6154 GB, free: 9.477 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.6625, allocations: 0.8168 MB / 0.6162 GB, free: 8.652 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/0.665, allocations: 408.4 kB / 0.6166 GB, free: 8.266 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.6805, allocations: 9.009 MB / 0.6254 GB, free: 14.79 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007878/0.6813, allocations: 1.153 MB / 0.6265 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00109/0.6824, allocations: 443.7 kB / 0.6269 GB, free: 13.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.683, allocations: 447.3 kB / 0.6273 GB, free: 12.74 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.683, allocations: 0 / 0.6273 GB, free: 12.74 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09954/0.7826, allocations: 58.08 MB / 0.6841 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.58, allocations: 10.39 kB / 0.6841 GB, free: 2.875 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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_WaterIF97_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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