Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_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.001382/0.001382, allocations: 182.9 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.0009322/0.0009322, allocations: 86.59 kB / 267.1 MB, free: 9.273 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.5046/0.5046, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.804e-05/5.806e-05, allocations: 4 kB / 425.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1585, allocations: 58.85 MB / 484.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.868/9.027, allocations: 2.825 GB / 3.298 GB, free: 3.629 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/9.027, allocations: 76.12 kB / 3.298 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.282/12.31, allocations: 0.8065 GB / 4.105 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.104e-06/12.31, allocations: 0 / 4.105 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002028/12.31, allocations: 71.86 kB / 4.105 GB, free: 15.45 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.01458/12.32, allocations: 3.962 MB / 4.109 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/12.32, allocations: 11.97 kB / 4.109 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008473/12.33, allocations: 287.1 kB / 4.109 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006171/12.33, allocations: 0.844 MB / 4.11 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00662/12.34, allocations: 2.165 MB / 4.112 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/12.34, allocations: 175.7 kB / 4.112 GB, free: 7.871 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/12.34, allocations: 207.8 kB / 4.112 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007149/12.35, allocations: 3.706 MB / 4.116 GB, free: 3.754 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/12.35, allocations: 7.938 kB / 4.116 GB, free: 3.746 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/12.35, allocations: 91.95 kB / 4.116 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000172/12.35, allocations: 163.7 kB / 4.116 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006012/12.35, allocations: 3.446 MB / 4.119 GB, free: 48 kB / 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.3884/12.74, allocations: 14.92 MB / 4.134 GB, free: 40.6 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/12.75, allocations: 2.147 MB / 4.136 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002004/12.75, allocations: 1.092 MB / 4.137 GB, free: 40.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04514/12.79, allocations: 24.62 MB / 4.161 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004139/12.8, allocations: 1.713 MB / 4.163 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001401/12.8, allocations: 195.4 kB / 4.163 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 5.83e-06/12.8, allocations: 3.469 kB / 4.163 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.01744/12.82, allocations: 7.495 MB / 4.17 GB, free: 24.62 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/12.82, allocations: 413.7 kB / 4.171 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002482/12.82, allocations: 1.547 MB / 4.172 GB, free: 23.92 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003934/12.82, allocations: 62.02 kB / 4.172 GB, free: 23.89 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008621/12.82, allocations: 0.9738 MB / 4.173 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008341/12.82, allocations: 0.5879 MB / 4.174 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/12.82, allocations: 39.09 kB / 4.174 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001241/12.82, allocations: 394.4 kB / 4.174 GB, free: 23.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/12.82, allocations: 1.069 MB / 4.175 GB, free: 23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001764/12.83, allocations: 1.515 MB / 4.177 GB, free: 22.54 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/12.83, allocations: 1.316 MB / 4.178 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/12.83, allocations: 3.188 kB / 4.178 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00626/12.83, allocations: 3.38 MB / 4.181 GB, free: 22.17 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008512/12.83, allocations: 4.06 MB / 4.185 GB, free: 17.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.426e-05/12.83, allocations: 14.05 kB / 4.185 GB, free: 17.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004897/12.84, allocations: 0.9626 MB / 4.186 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/12.84, allocations: 468.8 kB / 4.187 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/12.85, allocations: 3.158 MB / 4.19 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003242/12.85, allocations: 234.1 kB / 4.19 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004704/12.85, allocations: 105 kB / 4.19 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/12.85, allocations: 7.594 kB / 4.19 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00599/12.86, allocations: 3.05 MB / 4.193 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.247e-05/12.86, allocations: 11.91 kB / 4.193 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/12.86, allocations: 352.5 kB / 4.194 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/12.86, allocations: 493.5 kB / 4.194 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004569/12.86, allocations: 4.042 MB / 4.198 GB, free: 28.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/12.87, allocations: 238.8 kB / 4.198 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004084/12.87, allocations: 100.7 kB / 4.198 GB, free: 28.8 MB / 0.5573 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 () * 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.001003/12.87, allocations: 296.7 kB / 4.199 GB, free: 28.63 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008125/12.87, allocations: 222.3 kB / 4.199 GB, free: 28.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/12.88, allocations: 7.848 MB / 4.206 GB, free: 27.83 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.941e-05/12.88, allocations: 79.31 kB / 4.207 GB, free: 27.83 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/12.88, allocations: 0.6094 kB / 4.207 GB, free: 27.83 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007848/12.89, allocations: 6.882 MB / 4.213 GB, free: 26.89 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/12.9, allocations: 10.95 MB / 4.224 GB, free: 26.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/12.9, allocations: 3.938 kB / 4.224 GB, free: 26.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/12.9, allocations: 347.8 kB / 4.224 GB, free: 26.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004816/12.91, allocations: 2.532 MB / 4.227 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005058/12.91, allocations: 67.03 kB / 4.227 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003315/12.91, allocations: 4.116 MB / 4.231 GB, free: 23.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/12.91, allocations: 0 / 4.231 GB, free: 23.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00969/12.92, allocations: 7.808 MB / 4.238 GB, free: 23.26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002334/12.92, allocations: 0.7805 MB / 4.239 GB, free: 22.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005321/12.92, allocations: 53.44 kB / 4.239 GB, free: 22.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/12.93, allocations: 200.8 kB / 4.239 GB, free: 22.98 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/12.93, allocations: 147.4 kB / 4.24 GB, free: 22.98 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/12.93, allocations: 75.67 kB / 4.24 GB, free: 22.98 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002043/12.93, allocations: 1.363 MB / 4.241 GB, free: 22.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.412e-06/12.93, allocations: 0 / 4.241 GB, free: 22.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01192/12.94, allocations: 2.868 MB / 4.244 GB, free: 22.7 MB / 0.5573 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) * 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.02325/12.96, allocations: 10.34 MB / 4.254 GB, free: 21.31 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008942/12.97, allocations: 5.35 MB / 4.259 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/12.97, allocations: 0 / 4.259 GB, free: 20.73 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003159/12.98, allocations: 2.353 MB / 4.261 GB, free: 20.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005425/12.98, allocations: 0.968 MB / 4.262 GB, free: 20.56 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/13, allocations: 7.411 MB / 4.27 GB, free: 19.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001854/13, allocations: 2.307 MB / 4.272 GB, free: 18.34 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005057/13.01, allocations: 2.439 MB / 4.274 GB, free: 18.31 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/13.01, allocations: 1.28 MB / 4.275 GB, free: 17.25 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/13.01, allocations: 1.312 kB / 4.275 GB, free: 17.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5956/13.6, allocations: 126.1 MB / 4.399 GB, free: 65.16 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/13.6, allocations: 227.2 kB / 4.399 GB, free: 64.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.654/20.26, allocations: 0 / 4.399 GB, free: 64.9 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat