Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 179.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008502/0.0008501, allocations: 87.67 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2292/0.2292, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.435e-05/3.408e-05, allocations: 4 kB / 451.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1476, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.453/7.601, allocations: 2.801 GB / 3.302 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/7.601, allocations: 91.33 kB / 3.302 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.01/9.61, allocations: 0.4981 GB / 3.801 GB, free: 40.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 9.72e-07/9.61, allocations: 2.469 kB / 3.801 GB, free: 40.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.272e-05/9.611, allocations: 18.08 kB / 3.801 GB, free: 40.29 MB / 0.5261 GB 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.006848/9.617, allocations: 1.762 MB / 3.802 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/9.617, allocations: 11.97 kB / 3.802 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/9.618, allocations: 114.3 kB / 3.802 GB, free: 38.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/9.62, allocations: 323 kB / 3.803 GB, free: 38.06 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/9.621, allocations: 0.5955 MB / 3.803 GB, free: 37.43 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/9.621, allocations: 123.8 kB / 3.803 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.74e-05/9.621, allocations: 62.73 kB / 3.803 GB, free: 37.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/9.623, allocations: 1.194 MB / 3.805 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/9.623, allocations: 8 kB / 3.805 GB, free: 35.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/9.623, allocations: 35.22 kB / 3.805 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.225e-05/9.623, allocations: 41.3 kB / 3.805 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/9.625, allocations: 0.9885 MB / 3.806 GB, free: 34.88 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.004983/9.63, allocations: 5.619 MB / 3.811 GB, free: 28.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/9.632, allocations: 0.7357 MB / 3.812 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/9.632, allocations: 245.7 kB / 3.812 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02698/9.659, allocations: 15.78 MB / 3.828 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/9.659, allocations: 38.56 kB / 3.828 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=45): time 2.454e-06/9.659, allocations: 0 / 3.828 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.005097/9.664, allocations: 2.025 MB / 3.83 GB, free: 8.168 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/9.664, allocations: 166.7 kB / 3.83 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006625/9.665, allocations: 0.5305 MB / 3.83 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/9.665, allocations: 37.73 kB / 3.83 GB, free: 7.387 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/9.665, allocations: 391.2 kB / 3.831 GB, free: 7.004 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/9.665, allocations: 173.4 kB / 3.831 GB, free: 6.836 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/9.666, allocations: 16 kB / 3.831 GB, free: 6.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001192/9.666, allocations: 378.8 kB / 3.831 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/9.666, allocations: 237.5 kB / 3.831 GB, free: 6.207 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/9.667, allocations: 0.5671 MB / 3.832 GB, free: 5.484 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004634/9.667, allocations: 329.4 kB / 3.832 GB, free: 5.168 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.331e-06/9.667, allocations: 4 kB / 3.832 GB, free: 5.164 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001239/9.668, allocations: 0.8751 MB / 3.833 GB, free: 4.277 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/9.668, allocations: 8 kB / 3.833 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/9.668, allocations: 12 kB / 3.833 GB, free: 4.258 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/9.669, allocations: 60.83 kB / 3.833 GB, free: 4.195 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/9.67, allocations: 311.9 kB / 3.833 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/9.671, allocations: 1.987 MB / 3.835 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007685/9.672, allocations: 83.97 kB / 3.836 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/9.672, allocations: 44 kB / 3.836 GB, free: 1.629 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001753/9.672, allocations: 164.7 kB / 3.836 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/9.672, allocations: 71.16 kB / 3.836 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/9.675, allocations: 2.572 MB / 3.838 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.002e-05/9.675, allocations: 35.95 kB / 3.838 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/9.675, allocations: 3.984 kB / 3.838 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/9.675, allocations: 0 / 3.838 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/9.68, allocations: 3.761 MB / 3.842 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/9.68, allocations: 4.031 kB / 3.842 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/9.681, allocations: 239.7 kB / 3.842 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003601/9.681, allocations: 84.62 kB / 3.842 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.457e-05/9.682, allocations: 16 kB / 3.842 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/9.683, allocations: 1.987 MB / 3.844 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/9.683, allocations: 256 / 3.844 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/9.686, allocations: 2.242 MB / 3.846 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007439/9.687, allocations: 326.8 kB / 3.847 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/9.687, allocations: 15.98 kB / 3.847 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007536/9.688, allocations: 67.8 kB / 3.847 GB, free: 5.77 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/9.688, allocations: 56.44 kB / 3.847 GB, free: 5.715 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.104e-05/9.688, allocations: 20 kB / 3.847 GB, free: 5.695 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0009676/9.689, allocations: 0.546 MB / 3.847 GB, free: 5.152 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.11e-07/9.689, allocations: 0 / 3.847 GB, free: 5.152 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006434/9.695, allocations: 1.136 MB / 3.849 GB, free: 4.016 MB / 0.5417 GB 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.3438/10.04, allocations: 4.301 MB / 3.853 GB, free: 74.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002663/10.04, allocations: 1.017 MB / 3.854 GB, free: 74.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/10.04, allocations: 0 / 3.854 GB, free: 74.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001495/10.04, allocations: 0.76 MB / 3.854 GB, free: 74.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/10.05, allocations: 377.1 kB / 3.855 GB, free: 74.04 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008403/10.05, allocations: 2.451 MB / 3.857 GB, free: 73.61 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008956/10.05, allocations: 1.188 MB / 3.858 GB, free: 72.91 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001325/10.06, allocations: 441.8 kB / 3.859 GB, free: 72.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005259/10.06, allocations: 443.5 kB / 3.859 GB, free: 72.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.693e-06/10.06, allocations: 0 / 3.859 GB, free: 72.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/10.16, allocations: 55.45 MB / 3.913 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/10.16, allocations: 245 kB / 3.914 GB, free: 71.27 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.798/13.96, allocations: 3.594 kB / 3.914 GB, free: 71.27 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat