Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002362/0.002362, allocations: 177.8 kB / 8.36 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.063/2.063, 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.001095/0.001095, allocations: 90.69 kB / 262.1 MB, free: 13.86 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.2967/0.2967, allocations: 43.48 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.156e-05/2.165e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3973, allocations: 58.86 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.43/8.827, allocations: 2.827 GB / 3.293 GB, free: 103.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/8.827, allocations: 79.75 kB / 3.293 GB, free: 103.3 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.494/13.32, allocations: 0.8582 GB / 4.151 GB, free: 38.05 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.454e-06/13.32, allocations: 0 / 4.151 GB, free: 38.05 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003902/13.32, allocations: 63.66 kB / 4.151 GB, free: 38.04 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.01951/13.34, allocations: 3.852 MB / 4.155 GB, free: 36.16 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/13.34, allocations: 10.84 kB / 4.155 GB, free: 36.16 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009363/13.35, allocations: 0.8389 MB / 4.156 GB, free: 36.03 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009183/13.36, allocations: 2.095 MB / 4.158 GB, free: 35.51 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/13.36, allocations: 94.56 kB / 4.158 GB, free: 35.51 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/13.36, allocations: 115.7 kB / 4.158 GB, free: 35.51 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008084/13.37, allocations: 2.542 MB / 4.16 GB, free: 35.5 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/13.38, allocations: 2.793 MB / 4.163 GB, free: 34.93 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/13.38, allocations: 9.156 kB / 4.163 GB, free: 34.93 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005332/13.38, allocations: 5.281 kB / 4.163 GB, free: 34.93 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003362/13.38, allocations: 168.1 kB / 4.163 GB, free: 34.92 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.7279/14.11, allocations: 93.89 MB / 4.255 GB, free: 37.92 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004574/14.11, allocations: 1.643 MB / 4.257 GB, free: 37.89 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002461/14.12, allocations: 0.9862 MB / 4.258 GB, free: 37.88 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05273/14.17, allocations: 16.94 MB / 4.274 GB, free: 27.48 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002873/14.17, allocations: 1.174 MB / 4.275 GB, free: 27.35 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=147): time 5.039e-06/14.17, allocations: 0 / 4.275 GB, free: 27.35 MB / 0.5421 GB Notification: Performance of matching and sorting (n=163): time 0.03369/14.21, allocations: 8.106 MB / 4.283 GB, free: 25.86 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/14.21, allocations: 382.8 kB / 4.284 GB, free: 25.42 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002317/14.21, allocations: 1.128 MB / 4.285 GB, free: 25.26 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.0005456/14.21, allocations: 30.61 kB / 4.285 GB, free: 25.23 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009843/14.21, allocations: 0.9692 MB / 4.286 GB, free: 24.82 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008741/14.21, allocations: 0.5339 MB / 4.286 GB, free: 24.54 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/14.21, allocations: 2.688 kB / 4.286 GB, free: 24.54 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.000152/14.21, allocations: 392 kB / 4.287 GB, free: 24.23 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/14.21, allocations: 1.025 MB / 4.288 GB, free: 24.22 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002651/14.22, allocations: 1.468 MB / 4.289 GB, free: 23.73 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02266/14.24, allocations: 3.324 MB / 4.292 GB, free: 23.71 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.958e-05/14.24, allocations: 2.469 kB / 4.292 GB, free: 23.71 MB / 0.5421 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02883/14.27, allocations: 5.491 MB / 4.298 GB, free: 23.57 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.001048/14.27, allocations: 4.652 MB / 4.302 GB, free: 18.74 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.097e-05/14.27, allocations: 13 kB / 4.302 GB, free: 18.74 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01291/14.28, allocations: 2.027 MB / 4.304 GB, free: 18.72 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/14.28, allocations: 312.8 kB / 4.304 GB, free: 18.72 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/14.29, allocations: 3.674 MB / 4.308 GB, free: 18.15 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004744/14.3, allocations: 269.3 kB / 4.308 GB, free: 18.14 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008154/14.3, allocations: 100 kB / 4.308 GB, free: 18.14 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/14.3, allocations: 6.719 kB / 4.308 GB, free: 18.14 MB / 0.5421 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02848/14.33, allocations: 4.974 MB / 4.313 GB, free: 18.08 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.674e-05/14.33, allocations: 17.8 kB / 4.313 GB, free: 18.08 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009411/14.34, allocations: 1.496 MB / 4.315 GB, free: 18.05 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/14.34, allocations: 348.6 kB / 4.315 GB, free: 18.05 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005438/14.35, allocations: 2.679 MB / 4.318 GB, free: 17.49 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003603/14.35, allocations: 233.3 kB / 4.318 GB, free: 17.48 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004875/14.35, allocations: 95.95 kB / 4.318 GB, free: 17.48 MB / 0.5421 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.0007524/14.35, allocations: 190.7 kB / 4.318 GB, free: 17.35 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006795/14.35, allocations: 187.1 kB / 4.318 GB, free: 17.25 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/14.37, allocations: 6.881 MB / 4.325 GB, free: 16.7 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/14.37, allocations: 81.69 kB / 4.325 GB, free: 16.7 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/14.37, allocations: 0 / 4.325 GB, free: 16.7 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01179/14.38, allocations: 5.703 MB / 4.331 GB, free: 16.02 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02129/14.4, allocations: 9.356 MB / 4.34 GB, free: 15.49 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/14.4, allocations: 0 / 4.34 GB, free: 15.49 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003189/14.4, allocations: 357.4 kB / 4.34 GB, free: 15.49 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/14.41, allocations: 341 kB / 4.34 GB, free: 15.45 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005269/14.41, allocations: 38.38 kB / 4.341 GB, free: 15.45 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/14.41, allocations: 2.688 MB / 4.343 GB, free: 13.36 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/14.41, allocations: 0 / 4.343 GB, free: 13.36 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/14.42, allocations: 6.472 MB / 4.349 GB, free: 12.77 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/14.42, allocations: 0.7065 MB / 4.35 GB, free: 12.47 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008145/14.43, allocations: 19.34 kB / 4.35 GB, free: 12.47 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003332/14.43, allocations: 160.1 kB / 4.35 GB, free: 12.46 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005699/14.43, allocations: 138.7 kB / 4.35 GB, free: 12.46 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002472/14.43, allocations: 66.72 kB / 4.351 GB, free: 12.46 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.00227/14.43, allocations: 1.086 MB / 4.352 GB, free: 12.35 MB / 0.5421 GB Notification: Performance of sort global known variables: time 2.094e-06/14.43, allocations: 0 / 4.352 GB, free: 12.35 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01304/14.45, allocations: 2.661 MB / 4.354 GB, free: 12.22 MB / 0.5421 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.0158/14.46, allocations: 2.992 MB / 4.357 GB, free: 11.91 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.01265/14.47, allocations: 4.72 MB / 4.362 GB, free: 11.64 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/14.47, allocations: 1.969 kB / 4.362 GB, free: 11.64 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.005708/14.48, allocations: 2.169 MB / 4.364 GB, free: 11.56 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008245/14.49, allocations: 0.7716 MB / 4.365 GB, free: 11.55 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/14.5, allocations: 5.717 MB / 4.37 GB, free: 10.2 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002474/14.51, allocations: 2.169 MB / 4.372 GB, free: 9.418 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/14.51, allocations: 175.5 kB / 4.372 GB, free: 9.414 MB / 0.5421 GB Notification: Performance of SimCode: time 1.663e-06/14.51, allocations: 3.75 kB / 4.372 GB, free: 9.414 MB / 0.5421 GB Notification: Performance of Templates: time 0.6345/15.14, allocations: 95.14 MB / 4.465 GB, free: 69.29 MB / 0.5577 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)