Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.002351/0.002351, allocations: 181.2 kB / 16.4 MB, free: 5.723 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.072/2.072, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001538/0.001538, allocations: 93.3 kB / 270.9 MB, free: 8.367 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.537/0.537, allocations: 43.55 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005092/0.0005091, allocations: 16 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1351, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.691/8.826, allocations: 2.825 GB / 3.304 GB, free: 60.45 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/8.826, allocations: 78.22 kB / 3.304 GB, free: 60.41 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.329/13.15, allocations: 0.8087 GB / 4.113 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.655e-06/13.15, allocations: 0 / 4.113 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003751/13.16, allocations: 73.59 kB / 4.113 GB, free: 30.14 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02302/13.18, allocations: 4.253 MB / 4.117 GB, free: 27.83 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/13.18, allocations: 7.844 kB / 4.117 GB, free: 27.83 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001745/13.18, allocations: 300.7 kB / 4.117 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009217/13.19, allocations: 0.8321 MB / 4.118 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00911/13.2, allocations: 2.193 MB / 4.12 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/13.2, allocations: 170.5 kB / 4.12 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001171/13.2, allocations: 195.1 kB / 4.121 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/13.21, allocations: 3.74 MB / 4.124 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-05/13.21, allocations: 7.5 kB / 4.124 GB, free: 24.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004665/13.21, allocations: 90.33 kB / 4.124 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003071/13.21, allocations: 163.1 kB / 4.125 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/13.23, allocations: 3.569 MB / 4.128 GB, free: 23.66 MB / 0.5261 GB 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.0319/13.26, allocations: 14.94 MB / 4.143 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008675/13.27, allocations: 2.241 MB / 4.145 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07807/13.35, allocations: 24.53 MB / 4.169 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007081/13.35, allocations: 1.702 MB / 4.17 GB, free: 8.344 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001991/13.36, allocations: 196.8 kB / 4.171 GB, free: 8.164 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 7.104e-06/13.36, allocations: 3.938 kB / 4.171 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.04611/13.4, allocations: 9.39 MB / 4.18 GB, free: 124 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4597/13.86, allocations: 412.2 kB / 4.18 GB, free: 47.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/13.87, allocations: 1.564 MB / 4.182 GB, free: 47.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006399/13.87, allocations: 61.12 kB / 4.182 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001273/13.87, allocations: 0.8988 MB / 4.183 GB, free: 47.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001264/13.87, allocations: 0.589 MB / 4.183 GB, free: 47.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/13.87, allocations: 39.34 kB / 4.183 GB, free: 47.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002407/13.87, allocations: 388.7 kB / 4.184 GB, free: 47.03 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004592/13.87, allocations: 1.181 MB / 4.185 GB, free: 47.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005135/13.88, allocations: 1.615 MB / 4.186 GB, free: 46.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004934/13.89, allocations: 1.422 MB / 4.188 GB, free: 46.49 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.173e-05/13.89, allocations: 6.25 kB / 4.188 GB, free: 46.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01232/13.9, allocations: 3.465 MB / 4.191 GB, free: 46.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000914/13.9, allocations: 3.898 MB / 4.195 GB, free: 42.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.897e-05/13.9, allocations: 22.58 kB / 4.195 GB, free: 42.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008812/13.91, allocations: 0.9788 MB / 4.196 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004/13.91, allocations: 469.6 kB / 4.196 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/13.92, allocations: 3.162 MB / 4.199 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004255/13.92, allocations: 239.1 kB / 4.2 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008102/13.92, allocations: 103.3 kB / 4.2 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/13.92, allocations: 2.344 kB / 4.2 GB, free: 40.11 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01168/13.93, allocations: 3.267 MB / 4.203 GB, free: 39.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.152e-05/13.93, allocations: 15.53 kB / 4.203 GB, free: 39.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002105/13.93, allocations: 353 kB / 4.203 GB, free: 39.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004056/13.94, allocations: 494.5 kB / 4.204 GB, free: 39.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005354/13.94, allocations: 4.096 MB / 4.208 GB, free: 37.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003304/13.95, allocations: 234.8 kB / 4.208 GB, free: 37.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005678/13.95, allocations: 99.23 kB / 4.208 GB, free: 37.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.00251/13.95, allocations: 0.7668 MB / 4.209 GB, free: 36.85 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007353/13.95, allocations: 218.8 kB / 4.209 GB, free: 36.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01814/13.97, allocations: 7.949 MB / 4.217 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/13.97, allocations: 85.47 kB / 4.217 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/13.97, allocations: 2.625 kB / 4.217 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01477/13.98, allocations: 6.978 MB / 4.224 GB, free: 35.16 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02626/14.01, allocations: 11.08 MB / 4.235 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.978e-05/14.01, allocations: 0 / 4.235 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003082/14.01, allocations: 351.3 kB / 4.235 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009012/14.02, allocations: 2.172 MB / 4.237 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006239/14.02, allocations: 66.2 kB / 4.237 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005093/14.03, allocations: 4.106 MB / 4.241 GB, free: 32.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/14.03, allocations: 0 / 4.241 GB, free: 32.22 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02078/14.05, allocations: 8.111 MB / 4.249 GB, free: 31.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/14.05, allocations: 0.778 MB / 4.25 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/14.05, allocations: 62.92 kB / 4.25 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003525/14.06, allocations: 201 kB / 4.25 GB, free: 31.23 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007315/14.06, allocations: 141.1 kB / 4.25 GB, free: 31.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003008/14.06, allocations: 74.95 kB / 4.25 GB, free: 31.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00341/14.06, allocations: 1.393 MB / 4.252 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.52e-07/14.06, allocations: 0 / 4.252 GB, free: 31.08 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01438/14.08, allocations: 2.856 MB / 4.254 GB, free: 30.96 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03457/14.11, allocations: 10.67 MB / 4.265 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02014/14.13, allocations: 5.597 MB / 4.27 GB, free: 29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/14.13, allocations: 6.344 kB / 4.27 GB, free: 29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008692/14.14, allocations: 2.427 MB / 4.273 GB, free: 28.85 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01252/14.15, allocations: 0.9485 MB / 4.274 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04965/14.2, allocations: 17.79 MB / 4.291 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006693/14.21, allocations: 2.253 MB / 4.293 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006219/14.22, allocations: 1.327 MB / 4.294 GB, free: 16.42 MB / 0.5417 GB Notification: Performance of SimCode: time 4.418e-06/14.22, allocations: 0 / 4.294 GB, free: 16.42 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.829/20.04, allocations: 129.4 MB / 4.421 GB, free: 61.28 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat