Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002247/0.002247, allocations: 178.4 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.024/2.024, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001835/0.001835, allocations: 99.69 kB / 262.1 MB, free: 13.88 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.3041/0.3041, allocations: 43.48 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.037e-05/2.066e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3949, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.62/9.015, allocations: 2.827 GB / 3.293 GB, free: 97.36 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/9.015, allocations: 79.67 kB / 3.293 GB, free: 97.36 MB / 0.4952 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.293/13.31, allocations: 0.7965 GB / 4.089 GB, free: 38.17 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.344e-06/13.31, allocations: 3.719 kB / 4.089 GB, free: 38.17 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0002584/13.31, allocations: 56.95 kB / 4.089 GB, free: 38.16 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01797/13.33, allocations: 3.859 MB / 4.093 GB, free: 36.41 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/13.33, allocations: 7.562 kB / 4.093 GB, free: 36.41 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008681/13.34, allocations: 0.8404 MB / 4.094 GB, free: 36.28 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008459/13.34, allocations: 2.095 MB / 4.096 GB, free: 35.82 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/13.34, allocations: 90.98 kB / 4.096 GB, free: 35.82 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005664/13.34, allocations: 115.3 kB / 4.096 GB, free: 35.82 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006309/13.35, allocations: 2.542 MB / 4.099 GB, free: 35.8 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006416/13.36, allocations: 2.794 MB / 4.101 GB, free: 35.26 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.942e-05/13.36, allocations: 7.938 kB / 4.101 GB, free: 35.26 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003286/13.36, allocations: 7.188 kB / 4.101 GB, free: 35.26 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003016/13.36, allocations: 163.9 kB / 4.102 GB, free: 35.26 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.2873/13.65, allocations: 93.91 MB / 4.193 GB, free: 24.81 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004309/13.65, allocations: 1.641 MB / 4.195 GB, free: 24.77 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002338/13.65, allocations: 0.9823 MB / 4.196 GB, free: 24.76 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05554/13.71, allocations: 16.95 MB / 4.212 GB, free: 13.76 MB / 0.5733 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003659/13.71, allocations: 1.179 MB / 4.214 GB, free: 29.62 MB / 0.589 GB Notification: Performance of pre-optimization done (n=147): time 6.302e-06/13.71, allocations: 0 / 4.214 GB, free: 29.62 MB / 0.589 GB Notification: Performance of matching and sorting (n=163): time 0.0365/13.75, allocations: 8.09 MB / 4.221 GB, free: 27.91 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003197/13.75, allocations: 388 kB / 4.222 GB, free: 27.47 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/13.75, allocations: 1.125 MB / 4.223 GB, free: 27.3 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0007225/13.75, allocations: 32.89 kB / 4.223 GB, free: 27.27 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.00122/13.75, allocations: 0.9699 MB / 4.224 GB, free: 26.74 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.00113/13.75, allocations: 0.5364 MB / 4.224 GB, free: 26.39 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003005/13.75, allocations: 0 / 4.224 GB, free: 26.39 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.000278/13.76, allocations: 392.3 kB / 4.225 GB, free: 26.07 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002471/13.76, allocations: 1.025 MB / 4.226 GB, free: 26.07 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002943/13.76, allocations: 1.484 MB / 4.227 GB, free: 25.56 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02273/13.78, allocations: 3.314 MB / 4.23 GB, free: 25.48 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.931e-05/13.78, allocations: 3.938 kB / 4.23 GB, free: 25.48 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02866/13.81, allocations: 5.478 MB / 4.236 GB, free: 25.3 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.002048/13.81, allocations: 4.659 MB / 4.24 GB, free: 20.43 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.955e-05/13.81, allocations: 14.06 kB / 4.24 GB, free: 20.43 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/13.83, allocations: 2.028 MB / 4.242 GB, free: 20.36 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/13.83, allocations: 309 kB / 4.243 GB, free: 20.36 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009256/13.84, allocations: 3.679 MB / 4.246 GB, free: 18.29 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004173/13.84, allocations: 257.8 kB / 4.246 GB, free: 18.1 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000319/13.84, allocations: 103.1 kB / 4.247 GB, free: 18.02 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/13.84, allocations: 4 kB / 4.247 GB, free: 18.02 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02653/13.87, allocations: 4.98 MB / 4.251 GB, free: 15.23 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.913e-05/13.87, allocations: 19.7 kB / 4.251 GB, free: 15.22 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008887/13.88, allocations: 1.496 MB / 4.253 GB, free: 14.32 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/13.88, allocations: 348.2 kB / 4.253 GB, free: 14.06 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/13.89, allocations: 2.673 MB / 4.256 GB, free: 12.45 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003185/13.89, allocations: 237 kB / 4.256 GB, free: 12.27 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002772/13.89, allocations: 98.98 kB / 4.256 GB, free: 12.2 MB / 0.589 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.0008118/13.89, allocations: 195 kB / 4.256 GB, free: 12.04 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006102/13.89, allocations: 181.8 kB / 4.257 GB, free: 11.86 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/13.91, allocations: 6.883 MB / 4.263 GB, free: 8.082 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/13.91, allocations: 81.83 kB / 4.263 GB, free: 8.051 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/13.91, allocations: 0 / 4.263 GB, free: 8.051 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/13.92, allocations: 5.713 MB / 4.269 GB, free: 4.715 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4645/14.38, allocations: 9.372 MB / 4.278 GB, free: 97.99 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.679e-05/14.38, allocations: 1.125 kB / 4.278 GB, free: 97.99 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003366/14.39, allocations: 359 kB / 4.278 GB, free: 97.99 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001605/14.39, allocations: 338.3 kB / 4.279 GB, free: 97.96 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003023/14.39, allocations: 37.08 kB / 4.279 GB, free: 97.96 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/14.39, allocations: 2.689 MB / 4.281 GB, free: 95.9 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/14.39, allocations: 5.906 kB / 4.281 GB, free: 95.9 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/14.41, allocations: 6.466 MB / 4.288 GB, free: 95.5 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/14.41, allocations: 0.7124 MB / 4.288 GB, free: 95.41 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005591/14.41, allocations: 18.03 kB / 4.288 GB, free: 95.41 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002759/14.41, allocations: 163.9 kB / 4.289 GB, free: 95.41 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004358/14.41, allocations: 136.6 kB / 4.289 GB, free: 95.41 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002413/14.41, allocations: 66.69 kB / 4.289 GB, free: 95.41 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002487/14.42, allocations: 1.083 MB / 4.29 GB, free: 95.3 MB / 0.589 GB Notification: Performance of sort global known variables: time 6.11e-07/14.42, allocations: 1.094 kB / 4.29 GB, free: 95.3 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.0133/14.43, allocations: 2.657 MB / 4.292 GB, free: 95.3 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01647/14.45, allocations: 2.979 MB / 4.295 GB, free: 95.15 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.012/14.46, allocations: 4.718 MB / 4.3 GB, free: 94.89 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/14.46, allocations: 3.75 kB / 4.3 GB, free: 94.89 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.004924/14.46, allocations: 2.162 MB / 4.302 GB, free: 94.82 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007474/14.47, allocations: 0.7785 MB / 4.303 GB, free: 94.8 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/14.48, allocations: 5.721 MB / 4.308 GB, free: 93.72 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002006/14.49, allocations: 2.171 MB / 4.311 GB, free: 92.98 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/14.49, allocations: 177.7 kB / 4.311 GB, free: 92.97 MB / 0.589 GB Notification: Performance of SimCode: time 1.142e-06/14.49, allocations: 0 / 4.311 GB, free: 92.97 MB / 0.589 GB Notification: Performance of Templates: time 0.17/14.66, allocations: 94.72 MB / 4.403 GB, free: 87.63 MB / 0.589 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)