Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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.001626/0.001625, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001171/0.00117, allocations: 97.69 kB / 270.9 MB, free: 8.395 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.524/0.524, allocations: 43.54 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005031, allocations: 12 kB / 431.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.142, allocations: 58.84 MB / 490.3 MB, free: 11.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.751/8.894, allocations: 2.843 GB / 3.322 GB, free: 41.93 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/8.894, allocations: 82.14 kB / 3.322 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.186/14.08, allocations: 0.8754 GB / 4.197 GB, free: 35.43 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.449e-06/14.08, allocations: 2.844 kB / 4.197 GB, free: 35.43 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003538/14.08, allocations: 61.42 kB / 4.197 GB, free: 35.43 MB / 0.5417 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.02105/14.1, allocations: 4.035 MB / 4.201 GB, free: 33.8 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/14.1, allocations: 9.281 kB / 4.201 GB, free: 33.8 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001586/14.1, allocations: 274.3 kB / 4.201 GB, free: 33.76 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009025/14.11, allocations: 0.7846 MB / 4.202 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009472/14.12, allocations: 1.991 MB / 4.204 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003713/14.12, allocations: 164.5 kB / 4.204 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/14.12, allocations: 185.3 kB / 4.204 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/14.14, allocations: 3.283 MB / 4.208 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.432e-05/14.14, allocations: 7.094 kB / 4.208 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004187/14.14, allocations: 81.3 kB / 4.208 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002985/14.14, allocations: 149.7 kB / 4.208 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/14.15, allocations: 2.959 MB / 4.211 GB, free: 32.68 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02915/14.18, allocations: 14.07 MB / 4.224 GB, free: 24.22 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008514/14.19, allocations: 2.081 MB / 4.226 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08164/14.27, allocations: 24.6 MB / 4.25 GB, free: 25.07 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009588/14.28, allocations: 1.629 MB / 4.252 GB, free: 24.94 MB / 0.5574 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002352/14.28, allocations: 168.7 kB / 4.252 GB, free: 24.87 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=155): time 1.167e-05/14.28, allocations: 0 / 4.252 GB, free: 24.87 MB / 0.5574 GB Notification: Performance of matching and sorting (n=167): time 0.04379/14.33, allocations: 8.541 MB / 4.261 GB, free: 23.62 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001891/14.33, allocations: 252.2 kB / 4.261 GB, free: 23.34 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/14.33, allocations: 1.335 MB / 4.262 GB, free: 23.18 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0006838/14.33, allocations: 55.39 kB / 4.262 GB, free: 23.14 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.001037/14.33, allocations: 0.8297 MB / 4.263 GB, free: 22.75 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.001069/14.33, allocations: 0.5534 MB / 4.263 GB, free: 22.4 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/14.33, allocations: 35.06 kB / 4.264 GB, free: 22.4 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002495/14.33, allocations: 388.5 kB / 4.264 GB, free: 22.08 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/14.34, allocations: 1.039 MB / 4.265 GB, free: 22.08 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004358/14.34, allocations: 1.435 MB / 4.266 GB, free: 21.69 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004339/14.34, allocations: 1.259 MB / 4.268 GB, free: 21.61 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.665e-05/14.35, allocations: 3.375 kB / 4.268 GB, free: 21.61 MB / 0.5574 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01118/14.36, allocations: 3.079 MB / 4.271 GB, free: 21.39 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.001535/14.36, allocations: 3.727 MB / 4.274 GB, free: 17.52 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.832e-05/14.36, allocations: 10.34 kB / 4.274 GB, free: 17.52 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004642/14.36, allocations: 0.5318 MB / 4.275 GB, free: 17.49 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003792/14.37, allocations: 450.5 kB / 4.275 GB, free: 17.49 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/14.37, allocations: 2.709 MB / 4.278 GB, free: 15.42 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004552/14.37, allocations: 272.4 kB / 4.278 GB, free: 15.4 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006612/14.37, allocations: 93.03 kB / 4.278 GB, free: 15.4 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/14.37, allocations: 3.031 kB / 4.278 GB, free: 15.4 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009292/14.38, allocations: 2.825 MB / 4.281 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/14.38, allocations: 9.719 kB / 4.281 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/14.39, allocations: 205 kB / 4.281 GB, free: 15.25 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004035/14.39, allocations: 468 kB / 4.282 GB, free: 15.25 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/14.39, allocations: 1.873 MB / 4.283 GB, free: 13.69 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003744/14.4, allocations: 264.4 kB / 4.284 GB, free: 13.68 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006885/14.4, allocations: 91.67 kB / 4.284 GB, free: 13.68 MB / 0.5574 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 () * Number of clocked 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.002566/14.4, allocations: 0.7207 MB / 4.284 GB, free: 13.41 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007339/14.4, allocations: 199.9 kB / 4.285 GB, free: 13.31 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/14.42, allocations: 7.558 MB / 4.292 GB, free: 12.56 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/14.42, allocations: 79.84 kB / 4.292 GB, free: 12.56 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/14.42, allocations: 7.734 kB / 4.292 GB, free: 12.55 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01412/14.43, allocations: 6.611 MB / 4.299 GB, free: 11.64 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02861/14.46, allocations: 11.42 MB / 4.31 GB, free: 26.47 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.7e-05/14.46, allocations: 3.438 kB / 4.31 GB, free: 26.47 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/14.46, allocations: 362.7 kB / 4.31 GB, free: 26.47 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004562/14.47, allocations: 1.176 MB / 4.311 GB, free: 26.42 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006376/14.47, allocations: 63.34 kB / 4.311 GB, free: 26.42 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/14.47, allocations: 3.202 MB / 4.314 GB, free: 24.31 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/14.47, allocations: 6.625 kB / 4.314 GB, free: 24.31 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/14.49, allocations: 7.616 MB / 4.322 GB, free: 23.03 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002681/14.49, allocations: 0.7347 MB / 4.323 GB, free: 22.71 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009796/14.49, allocations: 55.33 kB / 4.323 GB, free: 22.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/14.5, allocations: 193.2 kB / 4.323 GB, free: 22.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007247/14.5, allocations: 159.4 kB / 4.323 GB, free: 22.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002917/14.5, allocations: 76.61 kB / 4.323 GB, free: 22.69 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003013/14.5, allocations: 1.223 MB / 4.324 GB, free: 22.55 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.493e-06/14.5, allocations: 2.625 kB / 4.324 GB, free: 22.55 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01463/14.52, allocations: 2.631 MB / 4.327 GB, free: 22.21 MB / 0.573 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,$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) * Number of clocked states: 0 () * 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.03499/14.55, allocations: 11.68 MB / 4.338 GB, free: 18.95 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0154/14.57, allocations: 4.873 MB / 4.343 GB, free: 18.59 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-05/14.57, allocations: 3.938 kB / 4.343 GB, free: 18.59 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00647/14.57, allocations: 2.518 MB / 4.345 GB, free: 18.44 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009461/14.58, allocations: 0.9913 MB / 4.346 GB, free: 18.28 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/14.61, allocations: 16.85 MB / 4.363 GB, free: 5.781 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003133/14.62, allocations: 2.138 MB / 4.365 GB, free: 4.922 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003178/14.62, allocations: 1.242 MB / 4.366 GB, free: 3.934 MB / 0.573 GB Notification: Performance of SimCode: time 1.954e-06/14.62, allocations: 0 / 4.366 GB, free: 3.934 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.804/20.42, allocations: 122.1 MB / 4.485 GB, free: 77.39 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat