Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00165/0.001655, allocations: 182.1 kB / 16.4 MB, free: 5.754 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.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.00134/0.001339, allocations: 91.34 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5317/0.5317, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004848/0.000485, allocations: 20 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1289, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.3957/0.5246, allocations: 33.11 MB / 0.5112 GB, free: 27.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04227/0.567, allocations: 17.21 MB / 0.528 GB, free: 15.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001603/0.5686, allocations: 21.69 kB / 0.528 GB, free: 15.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.5712, allocations: 400.9 kB / 0.5284 GB, free: 15.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02539/0.5967, allocations: 3.995 MB / 0.5323 GB, free: 13.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01289/0.6096, allocations: 2.102 MB / 0.5343 GB, free: 11.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003825/0.6135, allocations: 1.164 MB / 0.5355 GB, free: 11.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.6149, allocations: 431.9 kB / 0.5359 GB, free: 11.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02098/0.6359, allocations: 6.295 MB / 0.542 GB, free: 10.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02796/0.6639, allocations: 8.756 MB / 0.5506 GB, free: 9.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002945/0.6643, allocations: 36.38 kB / 0.5506 GB, free: 9.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01986/0.6842, allocations: 7.184 MB / 0.5576 GB, free: 5.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005499/0.6848, allocations: 231.3 kB / 0.5578 GB, free: 5.434 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.6851, allocations: 189.3 kB / 0.558 GB, free: 5.242 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008761/0.6939, allocations: 3.461 MB / 0.5614 GB, free: 1.781 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.694, allocations: 0 / 0.5614 GB, free: 1.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.694, allocations: 0 / 0.5614 GB, free: 1.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.694, allocations: 0 / 0.5614 GB, free: 1.781 MB / 378.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.005036/0.6991, allocations: 1.496 MB / 0.5629 GB, free: 240 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.6991, allocations: 12.03 kB / 0.5629 GB, free: 228 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001968/0.6993, allocations: 118.5 kB / 0.563 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003143/0.7025, allocations: 314.7 kB / 0.5633 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.704, allocations: 0.5394 MB / 0.5638 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.7042, allocations: 115.8 kB / 0.5639 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.7044, allocations: 63.95 kB / 0.564 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004644/0.709, allocations: 1.158 MB / 0.5651 GB, free: 13.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.948e-05/0.7091, allocations: 7.938 kB / 0.5651 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.7093, allocations: 31.98 kB / 0.5652 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.7094, allocations: 45.23 kB / 0.5652 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002957/0.7124, allocations: 0.8401 MB / 0.566 GB, free: 12.84 MB / 394.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.01085/0.7233, allocations: 5.505 MB / 0.5714 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/0.7253, allocations: 0.5764 MB / 0.572 GB, free: 6.379 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.181/0.9064, allocations: 46.62 MB / 0.6175 GB, free: 2.449 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/0.9065, allocations: 46.48 kB / 0.6175 GB, free: 2.395 MB / 442.7 MB Notification: Performance of pre-optimization done (n=42): time 3.557e-06/0.9065, allocations: 3.938 kB / 0.6175 GB, free: 2.391 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.0089/0.9154, allocations: 1.935 MB / 0.6194 GB, free: 412 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.9156, allocations: 170.2 kB / 0.6196 GB, free: 204 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.9168, allocations: 0.6132 MB / 0.6202 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.9169, allocations: 33.7 kB / 0.6202 GB, free: 15.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.9173, allocations: 425.6 kB / 0.6206 GB, free: 15.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.9176, allocations: 165.7 kB / 0.6208 GB, free: 14.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.773e-05/0.9177, allocations: 20.03 kB / 0.6208 GB, free: 14.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.9179, allocations: 338.8 kB / 0.6211 GB, free: 14.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007297/0.9186, allocations: 221.9 kB / 0.6213 GB, free: 14.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.9196, allocations: 0.56 MB / 0.6219 GB, free: 13.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00094/0.9206, allocations: 336.5 kB / 0.6222 GB, free: 13.33 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.9206, allocations: 4 kB / 0.6222 GB, free: 13.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002396/0.9231, allocations: 0.828 MB / 0.623 GB, free: 12.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.992e-05/0.9231, allocations: 12.97 kB / 0.623 GB, free: 12.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.9232, allocations: 13.81 kB / 0.623 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/0.9237, allocations: 64.83 kB / 0.6231 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.9262, allocations: 287.6 kB / 0.6234 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002417/0.9286, allocations: 1.976 MB / 0.6253 GB, free: 9.988 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.9298, allocations: 64.16 kB / 0.6254 GB, free: 9.926 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.9299, allocations: 43.98 kB / 0.6254 GB, free: 9.883 MB / 458.7 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.0006408/0.9306, allocations: 273.5 kB / 0.6257 GB, free: 9.605 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/0.9308, allocations: 83.05 kB / 0.6257 GB, free: 9.523 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004159/0.935, allocations: 2.218 MB / 0.6279 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.973e-05/0.9351, allocations: 31.95 kB / 0.6279 GB, free: 7.262 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.9351, allocations: 0 / 0.6279 GB, free: 7.262 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.9351, allocations: 3.984 kB / 0.6279 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00612/0.9413, allocations: 3.288 MB / 0.6312 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.9413, allocations: 0 / 0.6312 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001926/0.9433, allocations: 187.8 kB / 0.6313 GB, free: 3.707 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006547/0.9439, allocations: 96.7 kB / 0.6314 GB, free: 3.609 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/0.944, allocations: 16.81 kB / 0.6314 GB, free: 3.594 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002229/0.9463, allocations: 2.003 MB / 0.6334 GB, free: 1.434 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.9463, allocations: 0 / 0.6334 GB, free: 1.434 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003898/0.9502, allocations: 1.999 MB / 0.6354 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007144/0.951, allocations: 283.3 kB / 0.6356 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.9512, allocations: 12 kB / 0.6356 GB, free: 15.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.9522, allocations: 60.41 kB / 0.6357 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.9523, allocations: 32.39 kB / 0.6357 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.9e-05/0.9524, allocations: 23.98 kB / 0.6357 GB, free: 14.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001057/0.9535, allocations: 0.5068 MB / 0.6362 GB, free: 14.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9535, allocations: 0 / 0.6362 GB, free: 14.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00453/0.9581, allocations: 1.085 MB / 0.6373 GB, free: 13.39 MB / 474.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: 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.01656/0.9747, allocations: 3.733 MB / 0.6409 GB, free: 9.633 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004129/0.9789, allocations: 0.9114 MB / 0.6418 GB, free: 8.727 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.9789, allocations: 4 kB / 0.6418 GB, free: 8.723 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/0.9812, allocations: 0.6765 MB / 0.6425 GB, free: 8.047 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/0.9847, allocations: 359 kB / 0.6428 GB, free: 7.695 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01874/1.003, allocations: 13.21 MB / 0.6557 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/1.005, allocations: 1.125 MB / 0.6568 GB, free: 9.043 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008332/1.005, allocations: 399.3 kB / 0.6572 GB, free: 8.652 MB / 490.7 MB Notification: Performance of SimCode: time 1.213e-06/1.005, allocations: 8 kB / 0.6572 GB, free: 8.645 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.741/5.746, allocations: 44.07 MB / 0.7003 GB, free: 157.6 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat