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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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.BranchingPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002382/0.002382, allocations: 178 kB / 8.362 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 2.042/2.042, 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.00109/0.001089, allocations: 77.75 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.2982/0.2982, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.101e-05/2.117e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4446/0.4446, allocations: 58.86 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.831/9.275, allocations: 2.841 GB / 3.307 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/9.276, allocations: 81.52 kB / 3.307 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.567/13.84, allocations: 0.7964 GB / 4.104 GB, free: 40.93 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.004e-06/13.84, allocations: 1.719 kB / 4.104 GB, free: 40.93 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002599/13.84, allocations: 63.98 kB / 4.104 GB, free: 40.91 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01856/13.86, allocations: 3.657 MB / 4.107 GB, free: 39.12 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/13.86, allocations: 11.84 kB / 4.107 GB, free: 39.12 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008176/13.87, allocations: 0.7869 MB / 4.108 GB, free: 38.99 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007698/13.88, allocations: 1.98 MB / 4.11 GB, free: 38.55 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001912/13.88, allocations: 93.36 kB / 4.11 GB, free: 38.55 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006041/13.88, allocations: 107.3 kB / 4.11 GB, free: 38.55 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007141/13.89, allocations: 2.554 MB / 4.113 GB, free: 38.54 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00665/13.89, allocations: 2.536 MB / 4.115 GB, free: 38.06 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.166e-05/13.89, allocations: 8.531 kB / 4.115 GB, free: 38.06 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/13.89, allocations: 10.56 kB / 4.115 GB, free: 38.06 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000282/13.89, allocations: 144 kB / 4.115 GB, free: 38.06 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.7851/14.68, allocations: 124.5 MB / 4.237 GB, free: 84.39 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003948/14.68, allocations: 1.45 MB / 4.238 GB, free: 84.35 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002482/14.68, allocations: 0.9743 MB / 4.239 GB, free: 84.34 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05551/14.74, allocations: 17.07 MB / 4.256 GB, free: 73.75 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003036/14.74, allocations: 1.164 MB / 4.257 GB, free: 73.59 MB / 0.5733 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00174/14.75, allocations: 155.9 kB / 4.257 GB, free: 73.59 MB / 0.5733 GB Notification: Performance of pre-optimization done (n=145): time 8.736e-06/14.75, allocations: 2.344 kB / 4.257 GB, free: 73.59 MB / 0.5733 GB Notification: Performance of matching and sorting (n=157): time 0.05651/14.8, allocations: 8.907 MB / 4.266 GB, free: 72.16 MB / 0.5733 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/14.8, allocations: 359 kB / 4.266 GB, free: 71.75 MB / 0.5733 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/14.8, allocations: 1.02 MB / 4.267 GB, free: 71.59 MB / 0.5733 GB Notification: Performance of collectPreVariables (initialization): time 0.0005424/14.8, allocations: 29.05 kB / 4.267 GB, free: 71.56 MB / 0.5733 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008456/14.81, allocations: 0.8813 MB / 4.268 GB, free: 71.19 MB / 0.5733 GB Notification: Performance of collectInitialBindings (initialization): time 0.000837/14.81, allocations: 0.505 MB / 4.269 GB, free: 70.93 MB / 0.5733 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/14.81, allocations: 5.844 kB / 4.269 GB, free: 70.93 MB / 0.5733 GB Notification: Performance of setup shared object (initialization): time 0.0001357/14.81, allocations: 386.9 kB / 4.269 GB, free: 70.61 MB / 0.5733 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/14.81, allocations: 0.91 MB / 4.27 GB, free: 70.61 MB / 0.5733 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002353/14.81, allocations: 1.304 MB / 4.271 GB, free: 70.23 MB / 0.5733 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/14.83, allocations: 1.822 MB / 4.273 GB, free: 70.21 MB / 0.5733 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.222e-05/14.83, allocations: 4.031 kB / 4.273 GB, free: 70.21 MB / 0.5733 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01927/14.84, allocations: 3.45 MB / 4.276 GB, free: 70.07 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008302/14.85, allocations: 3.733 MB / 4.28 GB, free: 66.19 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/14.85, allocations: 7.469 kB / 4.28 GB, free: 66.19 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003637/14.85, allocations: 496.3 kB / 4.281 GB, free: 66.16 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003659/14.85, allocations: 452.1 kB / 4.281 GB, free: 66.16 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002794/14.86, allocations: 2.811 MB / 4.284 GB, free: 64.08 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004428/14.86, allocations: 264.3 kB / 4.284 GB, free: 64.07 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004749/14.86, allocations: 97.03 kB / 4.284 GB, free: 64.07 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/14.86, allocations: 5.156 kB / 4.284 GB, free: 64.07 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01669/14.88, allocations: 3.018 MB / 4.287 GB, free: 64 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/14.88, allocations: 11.59 kB / 4.287 GB, free: 64 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006516/14.88, allocations: 186.9 kB / 4.287 GB, free: 63.97 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/14.88, allocations: 459.7 kB / 4.288 GB, free: 63.97 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/14.88, allocations: 1.888 MB / 4.29 GB, free: 62.42 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/14.89, allocations: 237.7 kB / 4.29 GB, free: 62.41 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/14.89, allocations: 93.14 kB / 4.29 GB, free: 62.41 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.0007124/14.89, allocations: 238.4 kB / 4.29 GB, free: 62.23 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006029/14.89, allocations: 180.8 kB / 4.29 GB, free: 62.14 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02149/14.91, allocations: 6.771 MB / 4.297 GB, free: 61.68 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.996e-05/14.91, allocations: 72.11 kB / 4.297 GB, free: 61.68 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/14.91, allocations: 3.562 kB / 4.297 GB, free: 61.68 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01906/14.93, allocations: 5.907 MB / 4.303 GB, free: 60.93 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02982/14.96, allocations: 10.06 MB / 4.313 GB, free: 59.95 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/14.96, allocations: 3.656 kB / 4.313 GB, free: 59.95 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002569/14.96, allocations: 326.5 kB / 4.313 GB, free: 59.95 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003354/14.96, allocations: 1.218 MB / 4.314 GB, free: 59.9 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004617/14.97, allocations: 41.34 kB / 4.314 GB, free: 59.9 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/14.97, allocations: 3.401 MB / 4.317 GB, free: 57.79 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/14.97, allocations: 10.22 kB / 4.317 GB, free: 57.79 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02146/14.99, allocations: 7.196 MB / 4.324 GB, free: 56.66 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002124/14.99, allocations: 0.6567 MB / 4.325 GB, free: 56.38 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005788/14.99, allocations: 29.8 kB / 4.325 GB, free: 56.38 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00257/15, allocations: 142 kB / 4.325 GB, free: 56.37 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/15, allocations: 141 kB / 4.325 GB, free: 56.36 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002251/15, allocations: 72.03 kB / 4.325 GB, free: 56.36 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.001938/15, allocations: 1.005 MB / 4.326 GB, free: 56.25 MB / 0.5733 GB Notification: Performance of sort global known variables: time 6.41e-07/15, allocations: 3.359 kB / 4.326 GB, free: 56.25 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.01162/15.01, allocations: 2.476 MB / 4.329 GB, free: 56.15 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,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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.01421/15.02, allocations: 2.845 MB / 4.332 GB, free: 55.87 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.009854/15.03, allocations: 4.268 MB / 4.336 GB, free: 55.57 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/15.03, allocations: 2.656 kB / 4.336 GB, free: 55.57 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.00438/15.04, allocations: 2.147 MB / 4.338 GB, free: 55.43 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006817/15.05, allocations: 0.7295 MB / 4.339 GB, free: 55.4 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/15.06, allocations: 5.135 MB / 4.344 GB, free: 54.25 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/15.06, allocations: 2.045 MB / 4.346 GB, free: 53.51 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/15.06, allocations: 177.6 kB / 4.346 GB, free: 53.5 MB / 0.5733 GB Notification: Performance of SimCode: time 1.282e-06/15.06, allocations: 0 / 4.346 GB, free: 53.5 MB / 0.5733 GB Notification: Performance of Templates: time 0.6516/15.71, allocations: 105.5 MB / 4.449 GB, free: 86.24 MB / 0.5733 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (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 & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)