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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.964/1.964, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 96.16 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2976/0.2976, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.206e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4065, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.803/9.21, allocations: 2.842 GB / 3.308 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/9.21, allocations: 78.75 kB / 3.308 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.47/13.68, allocations: 0.8658 GB / 4.174 GB, free: 36.88 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.974e-06/13.68, allocations: 0 / 4.174 GB, free: 36.88 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002745/13.68, allocations: 60.83 kB / 4.174 GB, free: 36.86 MB / 0.5265 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.01768/13.7, allocations: 3.765 MB / 4.177 GB, free: 34.79 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/13.7, allocations: 14.94 kB / 4.177 GB, free: 34.79 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008709/13.71, allocations: 0.7805 MB / 4.178 GB, free: 34.59 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007825/13.71, allocations: 1.97 MB / 4.18 GB, free: 33.7 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/13.72, allocations: 84.06 kB / 4.18 GB, free: 33.68 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006874/13.72, allocations: 117.2 kB / 4.18 GB, free: 33.68 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007172/13.72, allocations: 2.303 MB / 4.183 GB, free: 32.89 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009425/13.73, allocations: 2.549 MB / 4.185 GB, free: 31.71 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/13.73, allocations: 11.81 kB / 4.185 GB, free: 31.71 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005387/13.73, allocations: 6.438 kB / 4.185 GB, free: 31.71 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002949/13.73, allocations: 145.5 kB / 4.185 GB, free: 31.69 MB / 0.5265 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.8281/14.56, allocations: 124.8 MB / 4.307 GB, free: 22.93 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003697/14.57, allocations: 1.454 MB / 4.309 GB, free: 22.89 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002268/14.57, allocations: 0.9725 MB / 4.309 GB, free: 22.87 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05437/14.62, allocations: 17.07 MB / 4.326 GB, free: 27.71 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002842/14.62, allocations: 1.162 MB / 4.327 GB, free: 27.55 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001644/14.63, allocations: 138.5 kB / 4.327 GB, free: 27.55 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=145): time 6.913e-06/14.63, allocations: 0 / 4.327 GB, free: 27.55 MB / 0.5733 GB Notification: Performance of matching and sorting (n=157): time 0.0562/14.68, allocations: 8.928 MB / 4.336 GB, free: 26.04 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002317/14.68, allocations: 363 kB / 4.336 GB, free: 25.62 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/14.69, allocations: 1.036 MB / 4.337 GB, free: 25.46 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0005484/14.69, allocations: 28.98 kB / 4.338 GB, free: 25.43 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009256/14.69, allocations: 0.8954 MB / 4.338 GB, free: 25.05 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.000936/14.69, allocations: 0.505 MB / 4.339 GB, free: 24.79 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/14.69, allocations: 3.562 kB / 4.339 GB, free: 24.79 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0002426/14.69, allocations: 378.4 kB / 4.339 GB, free: 24.48 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/14.69, allocations: 0.9158 MB / 4.34 GB, free: 24.47 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/14.69, allocations: 1.297 MB / 4.341 GB, free: 24.08 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/14.71, allocations: 1.828 MB / 4.343 GB, free: 24.03 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-05/14.71, allocations: 3.188 kB / 4.343 GB, free: 24.03 MB / 0.5733 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02034/14.73, allocations: 3.444 MB / 4.347 GB, free: 23.86 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.001625/14.73, allocations: 3.737 MB / 4.35 GB, free: 19.95 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.662e-05/14.73, allocations: 9.562 kB / 4.35 GB, free: 19.95 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003789/14.73, allocations: 494.7 kB / 4.351 GB, free: 19.9 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003694/14.74, allocations: 450.1 kB / 4.351 GB, free: 19.9 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/14.74, allocations: 2.805 MB / 4.354 GB, free: 17.81 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004598/14.75, allocations: 279.4 kB / 4.354 GB, free: 17.78 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007027/14.75, allocations: 92.81 kB / 4.354 GB, free: 17.78 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/14.75, allocations: 3.969 kB / 4.354 GB, free: 17.78 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01736/14.76, allocations: 3.022 MB / 4.357 GB, free: 17.69 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-05/14.76, allocations: 12.03 kB / 4.357 GB, free: 17.69 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006969/14.76, allocations: 187.3 kB / 4.357 GB, free: 17.66 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003769/14.77, allocations: 463.2 kB / 4.358 GB, free: 17.66 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/14.77, allocations: 1.885 MB / 4.36 GB, free: 16.1 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/14.77, allocations: 246.5 kB / 4.36 GB, free: 16.07 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004983/14.77, allocations: 91.91 kB / 4.36 GB, free: 16.07 MB / 0.5733 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0008686/14.78, allocations: 237.3 kB / 4.36 GB, free: 15.89 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006158/14.78, allocations: 179.6 kB / 4.36 GB, free: 15.8 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/14.8, allocations: 6.776 MB / 4.367 GB, free: 15.29 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.176e-05/14.8, allocations: 66.17 kB / 4.367 GB, free: 15.29 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/14.8, allocations: 3.047 kB / 4.367 GB, free: 15.29 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01987/14.82, allocations: 5.912 MB / 4.373 GB, free: 14.52 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03162/14.85, allocations: 10.06 MB / 4.383 GB, free: 13.55 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.821e-05/14.85, allocations: 7.094 kB / 4.383 GB, free: 13.55 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002577/14.85, allocations: 321.9 kB / 4.383 GB, free: 13.55 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00347/14.86, allocations: 1.237 MB / 4.384 GB, free: 13.48 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004968/14.86, allocations: 43.41 kB / 4.384 GB, free: 13.47 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00399/14.86, allocations: 3.407 MB / 4.388 GB, free: 11.36 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/14.86, allocations: 10.53 kB / 4.388 GB, free: 11.36 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02239/14.88, allocations: 7.19 MB / 4.395 GB, free: 10.2 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002276/14.89, allocations: 0.6608 MB / 4.395 GB, free: 9.949 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007217/14.89, allocations: 24.3 kB / 4.395 GB, free: 9.949 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003065/14.89, allocations: 152.1 kB / 4.395 GB, free: 9.926 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/14.89, allocations: 141.3 kB / 4.396 GB, free: 9.922 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000247/14.89, allocations: 72.33 kB / 4.396 GB, free: 9.922 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.002145/14.89, allocations: 1.016 MB / 4.397 GB, free: 9.809 MB / 0.5733 GB Notification: Performance of sort global known variables: time 1.353e-06/14.89, allocations: 0 / 4.397 GB, free: 9.809 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01215/14.9, allocations: 2.497 MB / 4.399 GB, free: 9.703 MB / 0.5733 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (163): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.01445/14.92, allocations: 2.956 MB / 4.402 GB, free: 9.281 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.009987/14.93, allocations: 4.258 MB / 4.406 GB, free: 8.977 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/14.93, allocations: 0 / 4.406 GB, free: 8.977 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.004784/14.93, allocations: 2.134 MB / 4.408 GB, free: 8.836 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00746/14.94, allocations: 0.7917 MB / 4.409 GB, free: 8.781 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/14.95, allocations: 5.158 MB / 4.414 GB, free: 7.418 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/14.96, allocations: 2.062 MB / 4.416 GB, free: 6.016 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/14.96, allocations: 176.5 kB / 4.416 GB, free: 5.867 MB / 0.5733 GB Notification: Performance of SimCode: time 1.443e-06/14.96, allocations: 0 / 4.416 GB, free: 5.867 MB / 0.5733 GB Notification: Performance of Templates: time 0.6242/15.58, allocations: 106.7 MB / 4.52 GB, free: 97.23 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (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 & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)