Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.002331/0.002336, allocations: 181.4 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.213/2.213, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001147/0.001147, allocations: 78.66 kB / 267.5 MB, free: 14.04 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.292/0.292, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.206e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 58.86 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.425/8.543, allocations: 2.825 GB / 3.298 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/8.544, allocations: 79.31 kB / 3.298 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.21/12.75, allocations: 0.7996 GB / 4.098 GB, free: 27 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.366e-06/12.75, allocations: 0 / 4.098 GB, free: 27 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003903/12.75, allocations: 67.92 kB / 4.098 GB, free: 26.94 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.02112/12.78, allocations: 3.953 MB / 4.102 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/12.78, allocations: 19.95 kB / 4.102 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00123/12.78, allocations: 291.6 kB / 4.102 GB, free: 22.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008643/12.79, allocations: 0.8371 MB / 4.103 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008128/12.79, allocations: 2.091 MB / 4.105 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/12.79, allocations: 171.7 kB / 4.105 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000973/12.79, allocations: 207.9 kB / 4.105 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/12.81, allocations: 3.714 MB / 4.109 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.032e-05/12.81, allocations: 0 / 4.109 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004406/12.81, allocations: 91.95 kB / 4.109 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/12.81, allocations: 171.6 kB / 4.109 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/12.82, allocations: 3.43 MB / 4.112 GB, free: 11.63 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.03134/12.85, allocations: 14.95 MB / 4.127 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007645/12.86, allocations: 2.145 MB / 4.129 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/12.86, allocations: 1.091 MB / 4.13 GB, free: 8.203 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5069/13.37, allocations: 24.6 MB / 4.154 GB, free: 38.05 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007191/13.38, allocations: 1.711 MB / 4.156 GB, free: 37.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001958/13.38, allocations: 198.2 kB / 4.156 GB, free: 37.93 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 1.08e-05/13.38, allocations: 2.844 kB / 4.156 GB, free: 37.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.03215/13.41, allocations: 7.498 MB / 4.163 GB, free: 37.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/13.41, allocations: 416.2 kB / 4.164 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/13.41, allocations: 1.549 MB / 4.165 GB, free: 36.41 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006252/13.41, allocations: 59.8 kB / 4.165 GB, free: 36.38 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009678/13.41, allocations: 0.9076 MB / 4.166 GB, free: 36.03 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/13.42, allocations: 0.5791 MB / 4.167 GB, free: 35.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/13.42, allocations: 38.45 kB / 4.167 GB, free: 35.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002043/13.42, allocations: 397.5 kB / 4.167 GB, free: 35.42 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002894/13.42, allocations: 1.074 MB / 4.168 GB, free: 35.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003649/13.42, allocations: 1.517 MB / 4.17 GB, free: 34.96 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003541/13.43, allocations: 1.31 MB / 4.171 GB, free: 34.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.849e-05/13.43, allocations: 6.406 kB / 4.171 GB, free: 34.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009392/13.44, allocations: 3.245 MB / 4.174 GB, free: 34.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009028/13.44, allocations: 3.914 MB / 4.178 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.49e-05/13.44, allocations: 15.09 kB / 4.178 GB, free: 30.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008335/13.45, allocations: 0.9574 MB / 4.179 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/13.45, allocations: 470.8 kB / 4.179 GB, free: 30.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003754/13.45, allocations: 3.155 MB / 4.183 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004186/13.46, allocations: 237.9 kB / 4.183 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006077/13.46, allocations: 104.4 kB / 4.183 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/13.46, allocations: 2.594 kB / 4.183 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009159/13.47, allocations: 3.05 MB / 4.186 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.257e-05/13.47, allocations: 17.28 kB / 4.186 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/13.47, allocations: 338.4 kB / 4.186 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004035/13.47, allocations: 492.2 kB / 4.187 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005004/13.48, allocations: 4.035 MB / 4.191 GB, free: 25.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/13.48, allocations: 243.7 kB / 4.191 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003651/13.48, allocations: 103.3 kB / 4.191 GB, free: 25.47 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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 () * 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.0008166/13.48, allocations: 293.9 kB / 4.191 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006991/13.48, allocations: 219.1 kB / 4.191 GB, free: 25.19 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01454/13.5, allocations: 7.852 MB / 4.199 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.056e-05/13.5, allocations: 85.16 kB / 4.199 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/13.5, allocations: 4.828 kB / 4.199 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01151/13.51, allocations: 6.861 MB / 4.206 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02068/13.53, allocations: 10.96 MB / 4.217 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-05/13.53, allocations: 3.031 kB / 4.217 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002946/13.53, allocations: 350.3 kB / 4.217 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008038/13.54, allocations: 2.527 MB / 4.219 GB, free: 22.73 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005663/13.54, allocations: 68.52 kB / 4.219 GB, free: 22.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004351/13.55, allocations: 4.121 MB / 4.223 GB, free: 20.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/13.55, allocations: 0.6562 kB / 4.223 GB, free: 20.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01499/13.56, allocations: 7.804 MB / 4.231 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/13.56, allocations: 0.7748 MB / 4.232 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000914/13.57, allocations: 60.45 kB / 4.232 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003463/13.57, allocations: 198.3 kB / 4.232 GB, free: 19.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005625/13.57, allocations: 144.6 kB / 4.232 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/13.57, allocations: 76.84 kB / 4.232 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003099/13.57, allocations: 1.37 MB / 4.234 GB, free: 19.46 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.81e-07/13.57, allocations: 0 / 4.234 GB, free: 19.46 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01446/13.59, allocations: 2.855 MB / 4.236 GB, free: 19.34 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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) * 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.03064/13.62, allocations: 10.35 MB / 4.247 GB, free: 17.94 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01271/13.63, allocations: 5.281 MB / 4.252 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/13.63, allocations: 0 / 4.252 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005616/13.64, allocations: 2.361 MB / 4.254 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009084/13.65, allocations: 0.9575 MB / 4.255 GB, free: 17.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02307/13.67, allocations: 7.407 MB / 4.262 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/13.67, allocations: 2.258 MB / 4.264 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002786/13.67, allocations: 1.323 MB / 4.266 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of SimCode: time 2.495e-06/13.67, allocations: 0 / 4.266 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.88/19.55, allocations: 132 MB / 4.395 GB, free: 62.65 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat