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.001537/0.001537, allocations: 181.3 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.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001103/0.001103, allocations: 78.72 kB / 267.5 MB, free: 14.05 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.289/0.289, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.519e-05/4.543e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1312, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.406/8.537, allocations: 2.825 GB / 3.298 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/8.537, allocations: 85.67 kB / 3.298 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.458/13, allocations: 0.8065 GB / 4.105 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.164e-06/13, allocations: 0 / 4.105 GB, free: 26.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003552/13, allocations: 71.92 kB / 4.105 GB, free: 26.66 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.02005/13.02, allocations: 3.957 MB / 4.109 GB, free: 22.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/13.02, allocations: 11.97 kB / 4.109 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001284/13.02, allocations: 299.6 kB / 4.109 GB, free: 22.31 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008757/13.03, allocations: 0.8293 MB / 4.11 GB, free: 21.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009613/13.04, allocations: 2.17 MB / 4.112 GB, free: 19.26 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003362/13.04, allocations: 175.7 kB / 4.112 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/13.04, allocations: 192 kB / 4.112 GB, free: 18.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/13.05, allocations: 3.722 MB / 4.116 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.025e-05/13.05, allocations: 11.73 kB / 4.116 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005332/13.05, allocations: 87.97 kB / 4.116 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003032/13.05, allocations: 163.7 kB / 4.116 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01168/13.06, allocations: 3.438 MB / 4.119 GB, free: 11.28 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.03336/13.1, allocations: 14.93 MB / 4.134 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007779/13.1, allocations: 2.164 MB / 4.136 GB, free: 8.953 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003156/13.11, allocations: 1.087 MB / 4.137 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5093/13.62, allocations: 24.6 MB / 4.161 GB, free: 37.54 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007253/13.62, allocations: 1.709 MB / 4.163 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002106/13.63, allocations: 200 kB / 4.163 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 1.415e-05/13.63, allocations: 1.641 kB / 4.163 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.03191/13.66, allocations: 7.506 MB / 4.17 GB, free: 36.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/13.66, allocations: 411.2 kB / 4.171 GB, free: 36.13 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/13.66, allocations: 1.546 MB / 4.172 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006318/13.66, allocations: 56.52 kB / 4.172 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009509/13.66, allocations: 0.9067 MB / 4.173 GB, free: 35.53 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009913/13.66, allocations: 0.5841 MB / 4.174 GB, free: 35.23 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/13.66, allocations: 45.61 kB / 4.174 GB, free: 35.23 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001537/13.66, allocations: 393.7 kB / 4.174 GB, free: 34.92 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002796/13.67, allocations: 1.072 MB / 4.175 GB, free: 34.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/13.67, allocations: 1.511 MB / 4.177 GB, free: 34.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003521/13.67, allocations: 1.32 MB / 4.178 GB, free: 34.37 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/13.67, allocations: 2.625 kB / 4.178 GB, free: 34.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009228/13.68, allocations: 3.249 MB / 4.181 GB, free: 34.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008747/13.68, allocations: 3.904 MB / 4.185 GB, free: 30.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-05/13.68, allocations: 20.66 kB / 4.185 GB, free: 30.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008482/13.69, allocations: 0.9586 MB / 4.186 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/13.7, allocations: 461.6 kB / 4.186 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/13.7, allocations: 3.154 MB / 4.189 GB, free: 27.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/13.71, allocations: 245.3 kB / 4.19 GB, free: 27.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007912/13.71, allocations: 111.6 kB / 4.19 GB, free: 27.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/13.71, allocations: 2.594 kB / 4.19 GB, free: 27.97 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009841/13.72, allocations: 3.047 MB / 4.193 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.9e-05/13.72, allocations: 15.69 kB / 4.193 GB, free: 27.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002025/13.72, allocations: 336.7 kB / 4.193 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/13.72, allocations: 493.8 kB / 4.194 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005075/13.73, allocations: 4.032 MB / 4.198 GB, free: 24.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/13.73, allocations: 238.1 kB / 4.198 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004523/13.73, allocations: 99.02 kB / 4.198 GB, free: 24.97 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 () * 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.0008389/13.73, allocations: 302.4 kB / 4.198 GB, free: 24.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007176/13.73, allocations: 225.2 kB / 4.198 GB, free: 24.69 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/13.75, allocations: 7.848 MB / 4.206 GB, free: 24 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.763e-05/13.75, allocations: 83.27 kB / 4.206 GB, free: 24 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.287e-05/13.75, allocations: 0 / 4.206 GB, free: 24 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01238/13.76, allocations: 6.869 MB / 4.213 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/13.78, allocations: 10.96 MB / 4.224 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/13.78, allocations: 0 / 4.224 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/13.79, allocations: 355.5 kB / 4.224 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007861/13.79, allocations: 2.524 MB / 4.226 GB, free: 22.24 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005676/13.79, allocations: 68.08 kB / 4.226 GB, free: 22.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/13.8, allocations: 4.122 MB / 4.23 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/13.8, allocations: 0 / 4.23 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0147/13.81, allocations: 7.806 MB / 4.238 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002488/13.82, allocations: 0.7773 MB / 4.239 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007051/13.82, allocations: 55.89 kB / 4.239 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003133/13.82, allocations: 200.5 kB / 4.239 GB, free: 19.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00042/13.82, allocations: 146 kB / 4.239 GB, free: 19.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/13.82, allocations: 75.25 kB / 4.239 GB, free: 19.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002795/13.82, allocations: 1.365 MB / 4.241 GB, free: 18.94 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.21e-07/13.82, allocations: 2.5 kB / 4.241 GB, free: 18.94 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01249/13.84, allocations: 2.852 MB / 4.243 GB, free: 18.81 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) * 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.02992/13.87, allocations: 10.35 MB / 4.253 GB, free: 17.41 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01311/13.88, allocations: 5.282 MB / 4.259 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/13.88, allocations: 3.938 kB / 4.259 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005492/13.88, allocations: 2.356 MB / 4.261 GB, free: 16.69 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008808/13.89, allocations: 0.96 MB / 4.262 GB, free: 16.66 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02194/13.92, allocations: 7.404 MB / 4.269 GB, free: 15.26 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/13.92, allocations: 2.253 MB / 4.271 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002854/13.92, allocations: 1.327 MB / 4.273 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.754e-06/13.92, allocations: 0 / 4.273 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.692/19.61, allocations: 132.1 MB / 4.402 GB, free: 62.3 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