Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002625/0.002629, allocations: 347.7 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.398/3.398, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003481/0.003481, allocations: 214.1 kB / 397.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6138/0.6138, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006681/0.0006684, allocations: 8 kB / 0.5592 GB, free: 53.49 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.115, allocations: 48.69 MB / 0.6067 GB, free: 4.684 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.013/8.128, allocations: 2.547 GB / 3.154 GB, free: 76.72 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/8.129, allocations: 83.95 kB / 3.154 GB, free: 76.72 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329: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.006/12.13, allocations: 0.7457 GB / 3.9 GB, free: 25.15 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.605e-06/12.13, allocations: 0 / 3.9 GB, free: 25.15 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003325/12.14, allocations: 69.67 kB / 3.9 GB, free: 25.14 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01915/12.15, allocations: 4.016 MB / 3.904 GB, free: 23.17 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/12.15, allocations: 7.875 kB / 3.904 GB, free: 23.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009069/12.16, allocations: 0.8193 MB / 3.905 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04103/12.2, allocations: 13.29 MB / 3.918 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003861/12.21, allocations: 182.7 kB / 3.918 GB, free: 22.47 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001069/12.21, allocations: 195.4 kB / 3.918 GB, free: 22.47 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01346/12.22, allocations: 3.586 MB / 3.922 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-05/12.22, allocations: 11.89 kB / 3.922 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007231/12.22, allocations: 89.78 kB / 3.922 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003328/12.22, allocations: 160.2 kB / 3.922 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/12.23, allocations: 3.285 MB / 3.925 GB, free: 21.93 MB / 458.7 MB 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.02934/12.26, allocations: 15.02 MB / 3.94 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008985/12.27, allocations: 2.309 MB / 3.942 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003556/12.28, allocations: 1.139 MB / 3.943 GB, free: 12.83 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05916/12.34, allocations: 18.79 MB / 3.962 GB, free: 16.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006862/12.34, allocations: 1.633 MB / 3.963 GB, free: 16.38 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 5.62e-06/12.34, allocations: 3.938 kB / 3.963 GB, free: 16.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.04075/12.38, allocations: 8.786 MB / 3.972 GB, free: 15.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/12.38, allocations: 278.6 kB / 3.972 GB, free: 15.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/12.39, allocations: 1.584 MB / 3.973 GB, free: 14.85 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000578/12.39, allocations: 56.08 kB / 3.974 GB, free: 14.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/12.39, allocations: 0.9793 MB / 3.975 GB, free: 14.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/12.39, allocations: 0.586 MB / 3.975 GB, free: 14.04 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/12.39, allocations: 39.12 kB / 3.975 GB, free: 14.04 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002308/12.39, allocations: 385 kB / 3.975 GB, free: 13.73 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003687/12.39, allocations: 1.145 MB / 3.977 GB, free: 13.72 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004161/12.4, allocations: 1.647 MB / 3.978 GB, free: 13.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0041/12.4, allocations: 1.377 MB / 3.98 GB, free: 12.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.747e-05/12.4, allocations: 3.125 kB / 3.98 GB, free: 12.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01099/12.41, allocations: 3.33 MB / 3.983 GB, free: 11.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003748/12.41, allocations: 0.5158 MB / 3.983 GB, free: 10.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.174e-05/12.41, allocations: 11.06 kB / 3.983 GB, free: 10.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/12.41, allocations: 276.5 kB / 3.984 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004354/12.42, allocations: 0.5133 MB / 3.984 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/12.42, allocations: 2.501 MB / 3.987 GB, free: 8.473 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004094/12.43, allocations: 258.7 kB / 3.987 GB, free: 8.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005227/12.43, allocations: 109.4 kB / 3.987 GB, free: 8.383 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/12.43, allocations: 5.594 kB / 3.987 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009198/12.44, allocations: 3.058 MB / 3.99 GB, free: 7.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.234e-05/12.44, allocations: 22.52 kB / 3.99 GB, free: 7.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001875/12.44, allocations: 279.4 kB / 3.99 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006417/12.44, allocations: 0.5132 MB / 3.991 GB, free: 6.922 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/12.45, allocations: 2.505 MB / 3.993 GB, free: 4.418 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005554/12.45, allocations: 258.4 kB / 3.993 GB, free: 4.219 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007916/12.45, allocations: 100.9 kB / 3.993 GB, free: 4.129 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.003005/12.46, allocations: 0.7271 MB / 3.994 GB, free: 3.465 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008658/12.46, allocations: 209.5 kB / 3.994 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02898/12.49, allocations: 7.769 MB / 4.002 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001734/12.49, allocations: 88.28 kB / 4.002 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/12.49, allocations: 0 / 4.002 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01806/12.51, allocations: 6.675 MB / 4.009 GB, free: 6.168 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4283/12.93, allocations: 10.91 MB / 4.019 GB, free: 53.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/12.93, allocations: 4.109 kB / 4.019 GB, free: 53.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00356/12.94, allocations: 405.3 kB / 4.02 GB, free: 53.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/12.94, allocations: 376.2 kB / 4.02 GB, free: 53.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005548/12.94, allocations: 67.73 kB / 4.02 GB, free: 53.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/12.94, allocations: 2.573 MB / 4.023 GB, free: 51.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/12.94, allocations: 0 / 4.023 GB, free: 51.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01714/12.96, allocations: 7.224 MB / 4.03 GB, free: 50.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/12.96, allocations: 0.7378 MB / 4.03 GB, free: 50.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/12.96, allocations: 54.95 kB / 4.03 GB, free: 50.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003316/12.97, allocations: 197.6 kB / 4.031 GB, free: 50.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005779/12.97, allocations: 145 kB / 4.031 GB, free: 50.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002632/12.97, allocations: 65.5 kB / 4.031 GB, free: 50.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002997/12.97, allocations: 1.172 MB / 4.032 GB, free: 50.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.22e-07/12.97, allocations: 2.562 kB / 4.032 GB, free: 50.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01282/12.98, allocations: 2.632 MB / 4.034 GB, free: 50.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.01466/13, allocations: 2.667 MB / 4.037 GB, free: 50.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01536/13.01, allocations: 5.223 MB / 4.042 GB, free: 50.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/13.01, allocations: 1.031 kB / 4.042 GB, free: 50.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005703/13.02, allocations: 2.424 MB / 4.045 GB, free: 50.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008635/13.03, allocations: 0.8886 MB / 4.045 GB, free: 50.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2166/13.24, allocations: 81.42 MB / 4.125 GB, free: 41.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003245/13.25, allocations: 2.306 MB / 4.127 GB, free: 40.73 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008178/13.26, allocations: 2.649 MB / 4.13 GB, free: 40.65 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/13.26, allocations: 186.8 kB / 4.13 GB, free: 40.64 MB / 490.7 MB Notification: Performance of SimCode: time 1.463e-06/13.26, allocations: 0 / 4.13 GB, free: 40.64 MB / 490.7 MB Notification: Performance of Templates: time 0.5834/13.84, allocations: 82.48 MB / 4.21 GB, free: 53.07 MB / 490.7 MB