Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001794/0.001794, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.449/1.449, allocations: 170.7 MB / 178.7 MB, free: 15.64 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001538/0.001538, allocations: 111.4 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1761/0.1761, allocations: 37.98 MB / 295.1 MB, free: 9.492 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2e-05/2.003e-05, allocations: 2.219 kB / 350 MB, free: 37 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09212/0.09216, allocations: 48.72 MB / 398.7 MB, free: 5.348 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.369/5.461, allocations: 2.547 GB / 2.936 GB, free: 109.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/5.462, allocations: 75.56 kB / 2.936 GB, free: 109.2 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/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 2.889/8.35, allocations: 0.7714 GB / 3.708 GB, free: 30.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.966e-06/8.35, allocations: 0 / 3.708 GB, free: 30.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002533/8.35, allocations: 67.28 kB / 3.708 GB, free: 30.29 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.01618/8.367, allocations: 3.729 MB / 3.711 GB, free: 28.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.395e-05/8.367, allocations: 11.19 kB / 3.711 GB, free: 28.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007044/8.374, allocations: 0.8184 MB / 3.712 GB, free: 28.01 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00655/8.38, allocations: 2.094 MB / 3.714 GB, free: 27.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/8.381, allocations: 97.55 kB / 3.714 GB, free: 27.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006821/8.381, allocations: 114.5 kB / 3.714 GB, free: 27.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004575/8.386, allocations: 2.527 MB / 3.717 GB, free: 26.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004373/8.39, allocations: 2.785 MB / 3.72 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.923e-05/8.39, allocations: 3.938 kB / 3.72 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002205/8.391, allocations: 3.938 kB / 3.72 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/8.391, allocations: 164.5 kB / 3.72 GB, free: 24.86 MB / 458.7 MB 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.6055/8.996, allocations: 78.57 MB / 3.796 GB, free: 27.28 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/8.999, allocations: 1.632 MB / 3.798 GB, free: 27.25 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/9.001, allocations: 0.9733 MB / 3.799 GB, free: 27.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03173/9.033, allocations: 17.46 MB / 3.816 GB, free: 15.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003141/9.036, allocations: 1.155 MB / 3.817 GB, free: 15.87 MB / 474.7 MB Notification: Performance of pre-optimization done (n=145): time 7.724e-06/9.036, allocations: 0 / 3.817 GB, free: 15.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=161): time 0.02559/9.061, allocations: 7.977 MB / 3.825 GB, free: 14.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/9.062, allocations: 383.4 kB / 3.825 GB, free: 13.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002367/9.064, allocations: 1.131 MB / 3.826 GB, free: 13.74 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001996/9.064, allocations: 25.7 kB / 3.826 GB, free: 13.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/9.065, allocations: 1.013 MB / 3.827 GB, free: 13.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007017/9.066, allocations: 0.5359 MB / 3.828 GB, free: 13.08 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/9.066, allocations: 0 / 3.828 GB, free: 13.08 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/9.067, allocations: 390.6 kB / 3.828 GB, free: 12.78 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/9.068, allocations: 1.006 MB / 3.829 GB, free: 12.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/9.07, allocations: 1.494 MB / 3.831 GB, free: 12.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01316/9.083, allocations: 3.31 MB / 3.834 GB, free: 12.13 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.762e-05/9.083, allocations: 2.188 kB / 3.834 GB, free: 12.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01745/9.101, allocations: 5.01 MB / 3.839 GB, free: 11.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001827/9.103, allocations: 5.255 MB / 3.844 GB, free: 22.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.695e-05/9.103, allocations: 16.34 kB / 3.844 GB, free: 22.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000624/9.103, allocations: 245.1 kB / 3.844 GB, free: 22.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002233/9.106, allocations: 0.5174 MB / 3.845 GB, free: 22.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/9.108, allocations: 2.525 MB / 3.847 GB, free: 20.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002987/9.111, allocations: 251.5 kB / 3.848 GB, free: 20.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005135/9.111, allocations: 101.7 kB / 3.848 GB, free: 20.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/9.111, allocations: 3.5 kB / 3.848 GB, free: 20.3 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01605/9.127, allocations: 4.573 MB / 3.852 GB, free: 20.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.557e-05/9.127, allocations: 17.05 kB / 3.852 GB, free: 20.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005669/9.128, allocations: 245.9 kB / 3.852 GB, free: 20.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/9.13, allocations: 0.5073 MB / 3.853 GB, free: 20.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/9.132, allocations: 2.524 MB / 3.855 GB, free: 18.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/9.135, allocations: 235 kB / 3.856 GB, free: 18.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005102/9.136, allocations: 100.1 kB / 3.856 GB, free: 18.02 MB / 490.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,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,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 (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.001055/9.137, allocations: 202.9 kB / 3.856 GB, free: 17.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008157/9.138, allocations: 187.9 kB / 3.856 GB, free: 17.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/9.149, allocations: 6.837 MB / 3.863 GB, free: 17.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.64e-05/9.149, allocations: 77.95 kB / 3.863 GB, free: 17.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.949e-05/9.149, allocations: 2.812 kB / 3.863 GB, free: 17.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007725/9.156, allocations: 5.665 MB / 3.868 GB, free: 16.49 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01705/9.174, allocations: 9.242 MB / 3.877 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/9.174, allocations: 0 / 3.877 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/9.175, allocations: 359.4 kB / 3.878 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009315/9.176, allocations: 338.2 kB / 3.878 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002334/9.177, allocations: 41.78 kB / 3.878 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/9.179, allocations: 2.684 MB / 3.881 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/9.179, allocations: 6.984 kB / 3.881 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/9.19, allocations: 6.412 MB / 3.887 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002121/9.192, allocations: 0.6861 MB / 3.888 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000794/9.193, allocations: 22.22 kB / 3.888 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/9.195, allocations: 160 kB / 3.888 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003243/9.195, allocations: 138 kB / 3.888 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001836/9.195, allocations: 63.64 kB / 3.888 GB, free: 12.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002473/9.198, allocations: 1.035 MB / 3.889 GB, free: 12.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.21e-07/9.198, allocations: 0 / 3.889 GB, free: 12.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0148/9.213, allocations: 2.61 MB / 3.892 GB, free: 12.6 MB / 490.7 MB 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: 43 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 157 * 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.01638/9.229, allocations: 2.968 MB / 3.894 GB, free: 12.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01196/9.241, allocations: 4.705 MB / 3.899 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.842e-05/9.241, allocations: 5.5 kB / 3.899 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005192/9.246, allocations: 2.133 MB / 3.901 GB, free: 11.87 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/9.252, allocations: 0.7726 MB / 3.902 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/9.264, allocations: 5.658 MB / 3.907 GB, free: 9.719 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002679/9.267, allocations: 2.221 MB / 3.91 GB, free: 8.07 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006652/9.274, allocations: 2.851 MB / 3.912 GB, free: 6.418 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007805/9.274, allocations: 161.9 kB / 3.912 GB, free: 6.281 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/9.274, allocations: 0 / 3.912 GB, free: 6.281 MB / 490.7 MB Notification: Performance of Templates: time 0.5126/9.787, allocations: 71.95 MB / 3.983 GB, free: 73.75 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)