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.001671/0.001671, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.014/2.014, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001188/0.001187, allocations: 95.56 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.5356/0.5356, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.0004787, allocations: 8 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1356, allocations: 58.85 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.752/8.887, allocations: 2.842 GB / 3.321 GB, free: 43.93 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/8.888, allocations: 83.7 kB / 3.321 GB, free: 43.89 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.364/13.25, allocations: 0.8053 GB / 4.126 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.445e-06/13.25, allocations: 0 / 4.126 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002638/13.25, allocations: 59.86 kB / 4.126 GB, free: 29.75 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.02099/13.27, allocations: 3.932 MB / 4.13 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/13.27, allocations: 10.59 kB / 4.13 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001485/13.27, allocations: 272.5 kB / 4.131 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008799/13.28, allocations: 0.7762 MB / 4.131 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008588/13.29, allocations: 2.008 MB / 4.133 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/13.29, allocations: 158.6 kB / 4.133 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/13.29, allocations: 189.7 kB / 4.134 GB, free: 26.17 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/13.31, allocations: 3.356 MB / 4.137 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-05/13.31, allocations: 7.469 kB / 4.137 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004125/13.31, allocations: 81.36 kB / 4.137 GB, free: 24.76 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002816/13.31, allocations: 145 kB / 4.137 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/13.32, allocations: 3.188 MB / 4.14 GB, free: 23.78 MB / 0.5261 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.02765/13.35, allocations: 13.82 MB / 4.154 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008086/13.36, allocations: 2.096 MB / 4.156 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07961/13.44, allocations: 24.59 MB / 4.18 GB, free: 6.098 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007388/13.44, allocations: 1.629 MB / 4.181 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001934/13.45, allocations: 176.9 kB / 4.182 GB, free: 4.691 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=155): time 5.119e-06/13.45, allocations: 4 kB / 4.182 GB, free: 4.688 MB / 0.5417 GB Notification: Performance of matching and sorting (n=167): time 0.5011/13.95, allocations: 8.527 MB / 4.19 GB, free: 48.37 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/13.95, allocations: 260.7 kB / 4.19 GB, free: 48.09 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00369/13.95, allocations: 1.333 MB / 4.191 GB, free: 47.92 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006418/13.95, allocations: 54.98 kB / 4.191 GB, free: 47.89 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009638/13.95, allocations: 0.8078 MB / 4.192 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001046/13.95, allocations: 0.5545 MB / 4.193 GB, free: 47.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/13.95, allocations: 34.47 kB / 4.193 GB, free: 47.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001592/13.95, allocations: 391.3 kB / 4.193 GB, free: 46.98 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003597/13.96, allocations: 1.033 MB / 4.194 GB, free: 46.98 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004274/13.96, allocations: 1.435 MB / 4.196 GB, free: 46.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004152/13.97, allocations: 1.26 MB / 4.197 GB, free: 46.51 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.661e-05/13.97, allocations: 3.25 kB / 4.197 GB, free: 46.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01186/13.98, allocations: 3.087 MB / 4.2 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009136/13.98, allocations: 3.728 MB / 4.203 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.53e-05/13.98, allocations: 8.594 kB / 4.203 GB, free: 42.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004599/13.98, allocations: 0.5304 MB / 4.204 GB, free: 42.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003833/13.99, allocations: 454.1 kB / 4.204 GB, free: 42.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/13.99, allocations: 2.712 MB / 4.207 GB, free: 40.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004447/13.99, allocations: 258.2 kB / 4.207 GB, free: 40.31 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005088/14, allocations: 97.62 kB / 4.207 GB, free: 40.31 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/14, allocations: 6.438 kB / 4.207 GB, free: 40.31 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009108/14, allocations: 2.825 MB / 4.21 GB, free: 40.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.514e-05/14, allocations: 10.69 kB / 4.21 GB, free: 40.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/14.01, allocations: 209.1 kB / 4.21 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/14.01, allocations: 460.8 kB / 4.211 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/14.01, allocations: 1.873 MB / 4.213 GB, free: 38.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/14.01, allocations: 261.2 kB / 4.213 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/14.01, allocations: 96.36 kB / 4.213 GB, free: 38.59 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 () * 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.00208/14.02, allocations: 0.7072 MB / 4.214 GB, free: 38.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007689/14.02, allocations: 198.8 kB / 4.214 GB, free: 38.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/14.03, allocations: 7.554 MB / 4.221 GB, free: 37.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.684e-05/14.03, allocations: 90.31 kB / 4.221 GB, free: 37.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/14.03, allocations: 0 / 4.221 GB, free: 37.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01412/14.05, allocations: 6.618 MB / 4.228 GB, free: 36.65 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02795/14.08, allocations: 11.39 MB / 4.239 GB, free: 35.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/14.08, allocations: 4.656 kB / 4.239 GB, free: 35.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003103/14.08, allocations: 365.5 kB / 4.239 GB, free: 35.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00488/14.08, allocations: 1.204 MB / 4.24 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006572/14.09, allocations: 62.88 kB / 4.241 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/14.09, allocations: 3.199 MB / 4.244 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.441e-05/14.09, allocations: 11.42 kB / 4.244 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01813/14.11, allocations: 7.61 MB / 4.251 GB, free: 32.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002684/14.11, allocations: 0.7388 MB / 4.252 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000837/14.11, allocations: 52.75 kB / 4.252 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002968/14.11, allocations: 193.4 kB / 4.252 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004733/14.11, allocations: 153.2 kB / 4.252 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002435/14.11, allocations: 80.59 kB / 4.252 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002824/14.12, allocations: 1.217 MB / 4.253 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.42e-07/14.12, allocations: 0 / 4.253 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01327/14.13, allocations: 2.59 MB / 4.256 GB, free: 31.59 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) * 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.03137/14.16, allocations: 11.62 MB / 4.267 GB, free: 28.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01445/14.18, allocations: 4.871 MB / 4.272 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/14.18, allocations: 7 kB / 4.272 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005984/14.18, allocations: 2.507 MB / 4.275 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008702/14.19, allocations: 0.9184 MB / 4.275 GB, free: 28.11 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03073/14.22, allocations: 16.77 MB / 4.292 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003634/14.23, allocations: 2.142 MB / 4.294 GB, free: 16.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004072/14.23, allocations: 1.231 MB / 4.295 GB, free: 16.74 MB / 0.5417 GB Notification: Performance of SimCode: time 2.535e-06/14.23, allocations: 0 / 4.295 GB, free: 16.74 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.578/19.81, allocations: 120.8 MB / 4.413 GB, free: 62.69 MB / 0.5574 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