Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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 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 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) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 96.73 kB / 16.99 MB, free: 6.402 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.001377/0.001377, allocations: 178.7 kB / 17.88 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2195/0.2195, allocations: 44.23 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004314, allocations: 12 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1769, allocations: 61.92 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03767/0.2147, allocations: 33.1 MB / 0.4928 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3116/0.5263, allocations: 17.21 MB / 0.5096 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.5274, allocations: 24.39 kB / 0.5097 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.5286, allocations: 390.6 kB / 0.51 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01408/0.5427, allocations: 3.997 MB / 0.5139 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006661/0.5494, allocations: 2.122 MB / 0.516 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002151/0.5515, allocations: 1.161 MB / 0.5171 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006409/0.5522, allocations: 419.6 kB / 0.5175 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01323/0.5654, allocations: 6.304 MB / 0.5237 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.5785, allocations: 8.775 MB / 0.5323 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002286/0.5788, allocations: 36 kB / 0.5323 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01399/0.5928, allocations: 7.178 MB / 0.5393 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004797/0.5933, allocations: 230.3 kB / 0.5395 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004421/0.5937, allocations: 187.8 kB / 0.5397 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007716/0.6015, allocations: 3.47 MB / 0.5431 GB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.6015, allocations: 8 kB / 0.5431 GB, free: 2.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6015, allocations: 0 / 0.5431 GB, free: 2.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.6015, allocations: 0 / 0.5431 GB, free: 2.898 MB / 382.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.003782/0.6053, allocations: 1.495 MB / 0.5446 GB, free: 1.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.6053, allocations: 8.031 kB / 0.5446 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.6055, allocations: 113.3 kB / 0.5447 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/0.6075, allocations: 320.6 kB / 0.545 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008219/0.6083, allocations: 0.5439 MB / 0.5455 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.608e-05/0.6084, allocations: 106.1 kB / 0.5456 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.401e-05/0.6085, allocations: 64.97 kB / 0.5457 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.6106, allocations: 1.159 MB / 0.5468 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.6107, allocations: 2.531 kB / 0.5468 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.898e-05/0.6108, allocations: 31.38 kB / 0.5468 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.6108, allocations: 46.77 kB / 0.5469 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.6124, allocations: 0.8466 MB / 0.5477 GB, free: 14.88 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.005788/0.6182, allocations: 5.511 MB / 0.5531 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.6194, allocations: 0.5743 MB / 0.5537 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09628/0.7157, allocations: 46.61 MB / 0.5992 GB, free: 6.293 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.217e-05/0.7158, allocations: 41.06 kB / 0.5992 GB, free: 6.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.7158, allocations: 0 / 0.5992 GB, free: 6.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=46): time 0.0052/0.721, allocations: 1.938 MB / 0.6011 GB, free: 4.695 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.7211, allocations: 162.2 kB / 0.6013 GB, free: 4.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000777/0.7219, allocations: 0.6154 MB / 0.6019 GB, free: 4.023 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.722, allocations: 34.95 kB / 0.6019 GB, free: 3.988 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.7222, allocations: 393.3 kB / 0.6023 GB, free: 3.707 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.7223, allocations: 171.8 kB / 0.6024 GB, free: 3.562 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.7224, allocations: 14.94 kB / 0.6025 GB, free: 3.559 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.7225, allocations: 387.9 kB / 0.6028 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003451/0.7229, allocations: 223.8 kB / 0.603 GB, free: 3.062 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005725/0.7235, allocations: 0.5615 MB / 0.6036 GB, free: 2.441 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005076/0.724, allocations: 337.2 kB / 0.6039 GB, free: 2.242 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.724, allocations: 0 / 0.6039 GB, free: 2.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001269/0.7253, allocations: 0.8628 MB / 0.6048 GB, free: 1.648 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.7253, allocations: 8 kB / 0.6048 GB, free: 1.641 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.7253, allocations: 14.62 kB / 0.6048 GB, free: 1.629 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003077/0.7257, allocations: 65.5 kB / 0.6048 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.7268, allocations: 289.3 kB / 0.6051 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.7284, allocations: 1.983 MB / 0.6071 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005943/0.729, allocations: 57.81 kB / 0.6071 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.575e-05/0.7291, allocations: 39.12 kB / 0.6071 GB, free: 15.21 MB / 462.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 (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.0004277/0.7295, allocations: 273.4 kB / 0.6074 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.7296, allocations: 71.16 kB / 0.6075 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.7323, allocations: 2.234 MB / 0.6097 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-05/0.7323, allocations: 32.47 kB / 0.6097 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.7324, allocations: 4.031 kB / 0.6097 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.7324, allocations: 3.984 kB / 0.6097 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.7363, allocations: 3.277 MB / 0.6129 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.7363, allocations: 0 / 0.6129 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009684/0.7373, allocations: 201.7 kB / 0.6131 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000432/0.7377, allocations: 90.05 kB / 0.6132 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.7378, allocations: 15.98 kB / 0.6132 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.7394, allocations: 1.997 MB / 0.6151 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7394, allocations: 0 / 0.6151 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.7417, allocations: 1.993 MB / 0.6171 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004736/0.7422, allocations: 285.8 kB / 0.6174 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.602e-05/0.7423, allocations: 12 kB / 0.6174 GB, free: 6.203 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005541/0.7428, allocations: 60.02 kB / 0.6174 GB, free: 6.145 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.306e-05/0.7429, allocations: 39.39 kB / 0.6175 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.902e-05/0.743, allocations: 27.94 kB / 0.6175 GB, free: 6.082 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006748/0.7437, allocations: 0.5107 MB / 0.618 GB, free: 5.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7437, allocations: 0 / 0.618 GB, free: 5.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004164/0.7479, allocations: 1.085 MB / 0.619 GB, free: 4.484 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: 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 (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.008643/0.7565, allocations: 3.71 MB / 0.6227 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.7587, allocations: 0.9337 MB / 0.6236 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/0.7588, allocations: 2.844 kB / 0.6236 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.76, allocations: 0.6734 MB / 0.6242 GB, free: 15.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.7619, allocations: 376 kB / 0.6246 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.777, allocations: 13.18 MB / 0.6375 GB, free: 1.523 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008764/0.7779, allocations: 1.133 MB / 0.6386 GB, free: 376 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.779, allocations: 440.6 kB / 0.639 GB, free: 15.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.7795, allocations: 395.3 kB / 0.6394 GB, free: 15.55 MB / 494.1 MB Notification: Performance of SimCode: time 1.963e-06/0.7795, allocations: 0 / 0.6394 GB, free: 15.55 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09267/0.8722, allocations: 55.45 MB / 0.6935 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.8725, allocations: 290.8 kB / 0.6938 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.621/5.494, allocations: 0 / 0.6938 GB, free: 8.125 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat