Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003667/0.003667, allocations: 180.6 kB / 7.454 MB, free: 2.508 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.319/1.319, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001729/0.001729, allocations: 107.8 kB / 217.7 MB, free: 8.145 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.2517/0.2517, allocations: 37.98 MB / 294.8 MB, free: 9.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.744e-06, allocations: 1.062 kB / 349.5 MB, free: 37.08 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 48.71 MB / 398.2 MB, free: 5.676 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.261/6.37, allocations: 2.547 GB / 2.936 GB, free: 114.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004336/6.371, allocations: 74.61 kB / 2.936 GB, free: 114.7 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: time 4.396/10.77, allocations: 0.8366 GB / 3.772 GB, free: 32.07 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002346/10.77, allocations: 68.53 kB / 3.772 GB, free: 32.06 MB / 474.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.02065/10.79, allocations: 3.749 MB / 3.776 GB, free: 30.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.851e-05/10.79, allocations: 6.938 kB / 3.776 GB, free: 30.4 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00759/10.8, allocations: 0.8536 MB / 3.777 GB, free: 30.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/10.8, allocations: 2.102 MB / 3.779 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/10.8, allocations: 91.83 kB / 3.779 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004004/10.8, allocations: 120.3 kB / 3.779 GB, free: 29.82 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005024/10.81, allocations: 2.606 MB / 3.782 GB, free: 29.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004649/10.81, allocations: 2.844 MB / 3.784 GB, free: 29.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.236e-05/10.81, allocations: 17.02 kB / 3.785 GB, free: 29.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002246/10.81, allocations: 3.375 kB / 3.785 GB, free: 29.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001944/10.81, allocations: 170.6 kB / 3.785 GB, free: 29.29 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.202/11.02, allocations: 79.9 MB / 3.863 GB, free: 19.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003135/11.02, allocations: 1.123 MB / 3.864 GB, free: 19.03 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002327/11.02, allocations: 1 MB / 3.865 GB, free: 19.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04261/11.06, allocations: 17.46 MB / 3.882 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004407/11.07, allocations: 1.183 MB / 3.883 GB, free: 7.297 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 6.903e-06/11.07, allocations: 6.438 kB / 3.883 GB, free: 7.293 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.02367/11.09, allocations: 8.277 MB / 3.891 GB, free: 21.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002908/11.09, allocations: 388.1 kB / 3.891 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/11.09, allocations: 1.143 MB / 3.893 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002242/11.09, allocations: 33.42 kB / 3.893 GB, free: 20.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007896/11.1, allocations: 0.7796 MB / 3.893 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005839/11.1, allocations: 0.5335 MB / 3.894 GB, free: 20.13 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/11.1, allocations: 4 kB / 3.894 GB, free: 20.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002272/11.1, allocations: 388.6 kB / 3.894 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/11.1, allocations: 1.147 MB / 3.895 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/11.1, allocations: 1.623 MB / 3.897 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/11.12, allocations: 3.503 MB / 3.9 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-05/11.12, allocations: 5.031 kB / 3.9 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03219/11.15, allocations: 6.525 MB / 3.907 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0034/11.15, allocations: 5.224 MB / 3.912 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/11.15, allocations: 17.27 kB / 3.912 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009189/11.16, allocations: 2.153 MB / 3.914 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/11.16, allocations: 315.2 kB / 3.914 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/11.17, allocations: 4.284 MB / 3.918 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003742/11.18, allocations: 256.5 kB / 3.919 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003221/11.18, allocations: 103.7 kB / 3.919 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/11.18, allocations: 4 kB / 3.919 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02017/11.2, allocations: 5.308 MB / 3.924 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.495e-05/11.2, allocations: 19.14 kB / 3.924 GB, free: 9.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006817/11.2, allocations: 1.613 MB / 3.926 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/11.21, allocations: 360.1 kB / 3.926 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005822/11.21, allocations: 3.003 MB / 3.929 GB, free: 5.992 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/11.22, allocations: 229.2 kB / 3.929 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007649/11.22, allocations: 105.1 kB / 3.929 GB, free: 5.746 MB / 0.5105 GB 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 (162): * Single equations (assignments): 158 * 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.0013/11.22, allocations: 190 kB / 3.929 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002923/11.22, allocations: 0.6528 MB / 3.93 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01605/11.24, allocations: 6.645 MB / 3.936 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.67e-05/11.24, allocations: 55.22 kB / 3.937 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-05/11.24, allocations: 0 / 3.937 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4177/11.65, allocations: 5.467 MB / 3.942 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/11.67, allocations: 9.161 MB / 3.951 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/11.67, allocations: 0 / 3.951 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/11.67, allocations: 325.8 kB / 3.951 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/11.67, allocations: 337.2 kB / 3.951 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002216/11.67, allocations: 53.23 kB / 3.951 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/11.68, allocations: 2.714 MB / 3.954 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/11.68, allocations: 0 / 3.954 GB, free: 104 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01271/11.69, allocations: 7.098 MB / 3.961 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002563/11.69, allocations: 0.668 MB / 3.962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005978/11.69, allocations: 20.36 kB / 3.962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/11.69, allocations: 158.6 kB / 3.962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/11.69, allocations: 131.1 kB / 3.962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001698/11.69, allocations: 70.8 kB / 3.962 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002112/11.7, allocations: 1.047 MB / 3.963 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01805/11.71, allocations: 2.65 MB / 3.966 GB, free: 103.4 MB / 0.5105 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: 35 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.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 (172): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * 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.01816/11.73, allocations: 3.022 MB / 3.969 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01038/11.74, allocations: 5.54 MB / 3.974 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/11.74, allocations: 0 / 3.974 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003977/11.75, allocations: 2.838 MB / 3.977 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004826/11.75, allocations: 0.729 MB / 3.978 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05504/11.81, allocations: 19.86 MB / 3.997 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004642/11.81, allocations: 2.293 MB / 3.999 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of SimCode: time 5.189e-06/11.81, allocations: 0 / 3.999 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.172/11.98, allocations: 94.41 MB / 4.091 GB, free: 89.15 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)