Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001602/0.001602, allocations: 181.5 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.232/2.232, 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.001083/0.001082, allocations: 82.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.3494/0.3494, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.6e-05/4.615e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1667, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.42/8.587, allocations: 2.842 GB / 3.315 GB, free: 2.629 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/8.587, allocations: 79.69 kB / 3.315 GB, free: 2.594 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.301/12.89, allocations: 0.8032 GB / 4.118 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.325e-06/12.89, allocations: 0 / 4.118 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002568/12.89, allocations: 55.88 kB / 4.118 GB, free: 15.07 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01805/12.91, allocations: 3.667 MB / 4.122 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/12.91, allocations: 15.91 kB / 4.122 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009218/12.91, allocations: 271.7 kB / 4.122 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007847/12.92, allocations: 0.7816 MB / 4.123 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007862/12.92, allocations: 1.988 MB / 4.125 GB, free: 8.219 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/12.92, allocations: 167.3 kB / 4.125 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006319/12.92, allocations: 179.9 kB / 4.125 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/12.93, allocations: 3.347 MB / 4.128 GB, free: 4.363 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.039e-05/12.94, allocations: 3.938 kB / 4.128 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/12.94, allocations: 79.97 kB / 4.129 GB, free: 4.281 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002818/12.94, allocations: 143.2 kB / 4.129 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/12.95, allocations: 3.073 MB / 4.132 GB, free: 1.062 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.02973/12.98, allocations: 13.81 MB / 4.145 GB, free: 2.117 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007201/12.98, allocations: 1.995 MB / 4.147 GB, free: 116 kB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4292/13.41, allocations: 1.066 MB / 4.148 GB, free: 46.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08201/13.49, allocations: 24.67 MB / 4.172 GB, free: 31.81 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006034/13.5, allocations: 1.632 MB / 4.174 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001716/13.5, allocations: 178.3 kB / 4.174 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 6.001e-06/13.5, allocations: 0 / 4.174 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167): time 0.02907/13.53, allocations: 7.036 MB / 4.181 GB, free: 30.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/13.53, allocations: 262.5 kB / 4.181 GB, free: 30.62 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002825/13.53, allocations: 1.312 MB / 4.182 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006089/13.53, allocations: 58.02 kB / 4.182 GB, free: 30.42 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000925/13.54, allocations: 0.8116 MB / 4.183 GB, free: 30.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009972/13.54, allocations: 0.5517 MB / 4.184 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/13.54, allocations: 37.44 kB / 4.184 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001554/13.54, allocations: 388.1 kB / 4.184 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/13.54, allocations: 0.928 MB / 4.185 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003065/13.54, allocations: 1.342 MB / 4.186 GB, free: 29.11 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/13.55, allocations: 1.159 MB / 4.188 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/13.55, allocations: 3.938 kB / 4.188 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.009841/13.56, allocations: 2.866 MB / 4.19 GB, free: 28.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007852/13.56, allocations: 3.73 MB / 4.194 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/13.56, allocations: 7.25 kB / 4.194 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005279/13.56, allocations: 0.5229 MB / 4.195 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005434/13.57, allocations: 451.1 kB / 4.195 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003672/13.57, allocations: 2.705 MB / 4.198 GB, free: 22.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006103/13.58, allocations: 256.2 kB / 4.198 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009054/13.58, allocations: 104.5 kB / 4.198 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/13.58, allocations: 3.844 kB / 4.198 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0112/13.59, allocations: 2.613 MB / 4.2 GB, free: 22.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.278e-05/13.59, allocations: 10.09 kB / 4.2 GB, free: 22.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/13.59, allocations: 201.5 kB / 4.201 GB, free: 22.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/13.6, allocations: 461.9 kB / 4.201 GB, free: 22.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/13.6, allocations: 1.872 MB / 4.203 GB, free: 21.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004507/13.6, allocations: 255 kB / 4.203 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009608/13.6, allocations: 88.08 kB / 4.203 GB, free: 21.11 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001297/13.6, allocations: 302.1 kB / 4.204 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009526/13.61, allocations: 195.6 kB / 4.204 GB, free: 20.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02192/13.63, allocations: 7.46 MB / 4.211 GB, free: 20.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000146/13.63, allocations: 81.66 kB / 4.211 GB, free: 20.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/13.63, allocations: 3.953 kB / 4.211 GB, free: 20.13 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01694/13.65, allocations: 6.505 MB / 4.217 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03385/13.68, allocations: 11.24 MB / 4.228 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.54e-05/13.68, allocations: 5.156 kB / 4.228 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003921/13.68, allocations: 368.7 kB / 4.229 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00565/13.69, allocations: 1.293 MB / 4.23 GB, free: 18.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006228/13.69, allocations: 68.22 kB / 4.23 GB, free: 18.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00456/13.69, allocations: 3.191 MB / 4.233 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/13.69, allocations: 5.281 kB / 4.233 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01968/13.71, allocations: 7.28 MB / 4.24 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003103/13.72, allocations: 0.7276 MB / 4.241 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001438/13.72, allocations: 55.73 kB / 4.241 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004473/13.72, allocations: 193.9 kB / 4.241 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008865/13.72, allocations: 154.2 kB / 4.241 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000417/13.72, allocations: 80.59 kB / 4.242 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003899/13.73, allocations: 1.2 MB / 4.243 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.82e-07/13.73, allocations: 0 / 4.243 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01658/13.74, allocations: 2.592 MB / 4.245 GB, free: 14.18 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (179): * Single equations (assignments): 153 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03775/13.78, allocations: 11.28 MB / 4.256 GB, free: 27.17 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01213/13.79, allocations: 4.609 MB / 4.261 GB, free: 26.85 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/13.8, allocations: 3.094 kB / 4.261 GB, free: 26.85 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005901/13.8, allocations: 2.442 MB / 4.263 GB, free: 26.71 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008287/13.81, allocations: 0.9326 MB / 4.264 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02111/13.83, allocations: 6.945 MB / 4.271 GB, free: 25.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002356/13.83, allocations: 2.132 MB / 4.273 GB, free: 24.56 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002598/13.84, allocations: 1.231 MB / 4.274 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of SimCode: time 1.713e-06/13.84, allocations: 0 / 4.274 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.8/19.64, allocations: 123.5 MB / 4.395 GB, free: 77.43 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat