Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.001649/0.001649, allocations: 181.1 kB / 13.66 MB, free: 1.664 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.183/2.183, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001077/0.001077, allocations: 90.64 kB / 267.5 MB, free: 14.11 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.2945/0.2945, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.251e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.778/8.912, allocations: 2.826 GB / 3.299 GB, free: 82.43 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/8.913, allocations: 79.92 kB / 3.299 GB, free: 82.39 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.412/13.33, allocations: 0.8678 GB / 4.167 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.29e-05/13.33, allocations: 0 / 4.167 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004726/13.33, allocations: 51.98 kB / 4.167 GB, free: 16.68 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.02362/13.35, allocations: 3.844 MB / 4.17 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/13.35, allocations: 11.97 kB / 4.17 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001566/13.35, allocations: 274 kB / 4.171 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/13.36, allocations: 0.7854 MB / 4.171 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/13.38, allocations: 1.932 MB / 4.173 GB, free: 9.707 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004155/13.38, allocations: 171.4 kB / 4.173 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/13.38, allocations: 184 kB / 4.174 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01375/13.39, allocations: 3.284 MB / 4.177 GB, free: 5.914 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.226e-05/13.39, allocations: 7.938 kB / 4.177 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005726/13.39, allocations: 83.95 kB / 4.177 GB, free: 5.824 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/13.39, allocations: 147.3 kB / 4.177 GB, free: 5.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/13.4, allocations: 2.921 MB / 4.18 GB, free: 2.754 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.03371/13.44, allocations: 14.23 MB / 4.194 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007337/13.44, allocations: 1.983 MB / 4.196 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002789/13.45, allocations: 0.985 MB / 4.197 GB, free: 368 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5081/13.95, allocations: 24.61 MB / 4.221 GB, free: 28.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00624/13.96, allocations: 1.586 MB / 4.222 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001853/13.96, allocations: 172.6 kB / 4.222 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=146): time 8.206e-06/13.96, allocations: 3.125 kB / 4.222 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=158): time 0.02918/13.99, allocations: 6.906 MB / 4.229 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/13.99, allocations: 261.3 kB / 4.229 GB, free: 26.83 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/14, allocations: 1.398 MB / 4.231 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005199/14, allocations: 54.73 kB / 4.231 GB, free: 26.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007983/14, allocations: 0.8254 MB / 4.232 GB, free: 26.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007813/14, allocations: 0.5247 MB / 4.232 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/14, allocations: 35.97 kB / 4.232 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001366/14, allocations: 386.2 kB / 4.233 GB, free: 25.72 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/14, allocations: 0.9297 MB / 4.234 GB, free: 25.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002479/14, allocations: 1.307 MB / 4.235 GB, free: 25.33 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/14.01, allocations: 1.15 MB / 4.236 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/14.01, allocations: 3.375 kB / 4.236 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.008283/14.01, allocations: 2.875 MB / 4.239 GB, free: 25.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007783/14.01, allocations: 3.729 MB / 4.242 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/14.01, allocations: 15.75 kB / 4.242 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00486/14.02, allocations: 0.5925 MB / 4.243 GB, free: 21.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003599/14.02, allocations: 439.4 kB / 4.243 GB, free: 21.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002878/14.03, allocations: 2.825 MB / 4.246 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003773/14.03, allocations: 232.5 kB / 4.246 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003781/14.03, allocations: 92.84 kB / 4.246 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/14.03, allocations: 7.234 kB / 4.246 GB, free: 19.04 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006668/14.04, allocations: 2.6 MB / 4.249 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.834e-05/14.04, allocations: 9.656 kB / 4.249 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009163/14.04, allocations: 202.7 kB / 4.249 GB, free: 18.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003561/14.04, allocations: 448.3 kB / 4.25 GB, free: 18.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/14.04, allocations: 1.87 MB / 4.251 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002911/14.05, allocations: 231.8 kB / 4.252 GB, free: 17.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/14.05, allocations: 87.14 kB / 4.252 GB, free: 17.32 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000738/14.05, allocations: 290.3 kB / 4.252 GB, free: 17.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006084/14.05, allocations: 199.5 kB / 4.252 GB, free: 17.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/14.06, allocations: 7.447 MB / 4.259 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/14.06, allocations: 77.39 kB / 4.26 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/14.06, allocations: 4.828 kB / 4.26 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01105/14.07, allocations: 6.525 MB / 4.266 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02224/14.09, allocations: 10.38 MB / 4.276 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-05/14.09, allocations: 2.719 kB / 4.276 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004146/14.1, allocations: 338.8 kB / 4.276 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007792/14.11, allocations: 1.585 MB / 4.278 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007939/14.11, allocations: 58.56 kB / 4.278 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005251/14.11, allocations: 3.472 MB / 4.281 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/14.11, allocations: 8.516 kB / 4.281 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02243/14.14, allocations: 7.066 MB / 4.288 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003444/14.14, allocations: 0.7438 MB / 4.289 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/14.14, allocations: 47.92 kB / 4.289 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00511/14.15, allocations: 188.6 kB / 4.289 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009346/14.15, allocations: 137.1 kB / 4.289 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004932/14.15, allocations: 65.09 kB / 4.289 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004741/14.15, allocations: 1.262 MB / 4.291 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.162e-06/14.15, allocations: 0 / 4.291 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.018/14.17, allocations: 2.728 MB / 4.293 GB, free: 11.56 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.04284/14.21, allocations: 9.896 MB / 4.303 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0183/14.23, allocations: 4.6 MB / 4.308 GB, free: 25.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/14.23, allocations: 0 / 4.308 GB, free: 25.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007515/14.24, allocations: 2.236 MB / 4.31 GB, free: 25.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01282/14.25, allocations: 0.9707 MB / 4.311 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/14.28, allocations: 6.896 MB / 4.317 GB, free: 24.53 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/14.29, allocations: 2.14 MB / 4.319 GB, free: 23.79 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003917/14.29, allocations: 1.228 MB / 4.321 GB, free: 23.78 MB / 0.5573 GB Notification: Performance of SimCode: time 2.204e-06/14.29, allocations: 0 / 4.321 GB, free: 23.78 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.517/19.81, allocations: 125.2 MB / 4.443 GB, free: 73.91 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat