Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001698/0.001701, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2902/0.2902, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005145/0.0005146, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1187, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.0546/0.1733, allocations: 33.11 MB / 0.5112 GB, free: 8.039 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3896/0.563, allocations: 17.2 MB / 0.528 GB, free: 11.92 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.5643, allocations: 23.84 kB / 0.528 GB, free: 11.92 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.5662, allocations: 397 kB / 0.5284 GB, free: 11.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01798/0.5843, allocations: 3.984 MB / 0.5323 GB, free: 11.87 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00972/0.594, allocations: 2.109 MB / 0.5343 GB, free: 11.84 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.5971, allocations: 1.154 MB / 0.5354 GB, free: 11.84 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009957/0.5981, allocations: 412 kB / 0.5358 GB, free: 11.79 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01961/0.6177, allocations: 6.293 MB / 0.542 GB, free: 11.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02332/0.6411, allocations: 8.772 MB / 0.5506 GB, free: 9.793 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002359/0.6414, allocations: 36 kB / 0.5506 GB, free: 9.758 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0194/0.6608, allocations: 7.182 MB / 0.5576 GB, free: 4.125 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005698/0.6614, allocations: 226.7 kB / 0.5578 GB, free: 3.988 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004121/0.6618, allocations: 187.6 kB / 0.558 GB, free: 3.867 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008575/0.6704, allocations: 3.462 MB / 0.5614 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.6705, allocations: 0 / 0.5614 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.6705, allocations: 0 / 0.5614 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.6705, allocations: 0 / 0.5614 GB, free: 0.9258 MB / 362.7 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.006162/0.6767, allocations: 1.541 MB / 0.5629 GB, free: 15.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.6768, allocations: 8.031 kB / 0.5629 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/0.677, allocations: 116 kB / 0.563 GB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00321/0.6803, allocations: 312.7 kB / 0.5633 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.6817, allocations: 0.5325 MB / 0.5638 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.6819, allocations: 118.2 kB / 0.5639 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.6821, allocations: 56.14 kB / 0.564 GB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004222/0.6863, allocations: 1.214 MB / 0.5652 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/0.6864, allocations: 2.625 kB / 0.5652 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.6865, allocations: 27.89 kB / 0.5652 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.716e-05/0.6866, allocations: 46.2 kB / 0.5652 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004494/0.6911, allocations: 1.061 MB / 0.5663 GB, free: 12.63 MB / 378.7 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.01523/0.7064, allocations: 5.645 MB / 0.5718 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009008/0.7155, allocations: 0.7965 MB / 0.5726 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0739/0.7895, allocations: 15.97 MB / 0.5882 GB, free: 5.227 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.463e-05/0.7896, allocations: 38.06 kB / 0.5882 GB, free: 5.184 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.837e-06/0.7896, allocations: 0 / 0.5882 GB, free: 5.184 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.01184/0.8014, allocations: 2.373 MB / 0.5905 GB, free: 3.031 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.8016, allocations: 158.7 kB / 0.5907 GB, free: 2.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.8029, allocations: 0.6199 MB / 0.5913 GB, free: 2.223 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.803, allocations: 33.7 kB / 0.5913 GB, free: 2.184 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004199/0.8035, allocations: 413.9 kB / 0.5917 GB, free: 1.781 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/0.8038, allocations: 178 kB / 0.5919 GB, free: 1.613 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.8038, allocations: 19.56 kB / 0.5919 GB, free: 1.598 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.804, allocations: 346.8 kB / 0.5922 GB, free: 1.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.8053, allocations: 285.8 kB / 0.5925 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.8069, allocations: 0.6135 MB / 0.5931 GB, free: 216 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.8084, allocations: 377.8 kB / 0.5935 GB, free: 15.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.882e-05/0.8085, allocations: 4 kB / 0.5935 GB, free: 15.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003605/0.8121, allocations: 0.9453 MB / 0.5944 GB, free: 14.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.8122, allocations: 15.94 kB / 0.5944 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.8123, allocations: 12 kB / 0.5944 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.8128, allocations: 72.31 kB / 0.5945 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002755/0.8156, allocations: 303.3 kB / 0.5948 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00257/0.8182, allocations: 1.993 MB / 0.5967 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.8196, allocations: 80.16 kB / 0.5968 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.8198, allocations: 43.95 kB / 0.5968 GB, free: 12.31 MB / 410.7 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 (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 () * 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 (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.0007124/0.8206, allocations: 272.2 kB / 0.5971 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/0.8208, allocations: 71.16 kB / 0.5972 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005933/0.8268, allocations: 2.601 MB / 0.5997 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.027e-05/0.8269, allocations: 39.94 kB / 0.5997 GB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8269, allocations: 0 / 0.5997 GB, free: 9.336 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/0.827, allocations: 7.984 kB / 0.5997 GB, free: 9.328 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008495/0.8355, allocations: 3.794 MB / 0.6035 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.8355, allocations: 0 / 0.6035 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002299/0.8378, allocations: 243.7 kB / 0.6037 GB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006697/0.8385, allocations: 92.77 kB / 0.6038 GB, free: 5.141 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.8386, allocations: 12 kB / 0.6038 GB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/0.841, allocations: 1.995 MB / 0.6057 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.8411, allocations: 4.328 kB / 0.6057 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005617/0.8467, allocations: 2.398 MB / 0.6081 GB, free: 0.543 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007865/0.8476, allocations: 327 kB / 0.6084 GB, free: 208 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.8477, allocations: 12 kB / 0.6084 GB, free: 196 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.8488, allocations: 67.84 kB / 0.6085 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.849, allocations: 44.48 kB / 0.6085 GB, free: 84 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.079e-05/0.8491, allocations: 27.98 kB / 0.6085 GB, free: 56 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001247/0.8503, allocations: 0.5539 MB / 0.6091 GB, free: 15.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.8503, allocations: 0 / 0.6091 GB, free: 15.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004821/0.8552, allocations: 1.089 MB / 0.6101 GB, free: 14.41 MB / 426.7 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 (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.01379/0.869, allocations: 4.129 MB / 0.6142 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004248/0.8733, allocations: 1.104 MB / 0.6153 GB, free: 9.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.8734, allocations: 4 kB / 0.6153 GB, free: 9.266 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002657/0.876, allocations: 0.8012 MB / 0.616 GB, free: 8.465 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/0.8794, allocations: 367.9 kB / 0.6164 GB, free: 8.105 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02102/0.9004, allocations: 13.34 MB / 0.6294 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.9016, allocations: 1.181 MB / 0.6306 GB, free: 9.293 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009438/0.9026, allocations: 447.3 kB / 0.631 GB, free: 8.855 MB / 442.7 MB Notification: Performance of SimCode: time 1.222e-06/0.9026, allocations: 4 kB / 0.631 GB, free: 8.852 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.176/5.079, allocations: 45.76 MB / 0.6757 GB, free: 11.07 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat