Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") [: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.003319/0.003319, allocations: 175.5 kB / 7.451 MB, free: 2.504 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.364/1.364, 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.002069/0.002069, allocations: 120.5 kB / 217.7 MB, free: 8.141 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.1751/0.1751, allocations: 37.97 MB / 294.8 MB, free: 9.59 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.745e-06/7.785e-06, allocations: 1.5 kB / 349.5 MB, free: 37.05 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 48.71 MB / 398.2 MB, free: 5.664 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.924/6.025, allocations: 2.544 GB / 2.933 GB, free: 115.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/6.026, allocations: 82.19 kB / 2.933 GB, free: 115.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.662/8.688, allocations: 0.5565 GB / 3.49 GB, free: 35.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003281/8.688, allocations: 43.95 kB / 3.49 GB, free: 35.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.0171/8.705, allocations: 2.782 MB / 3.492 GB, free: 34.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001007/8.705, allocations: 7.156 kB / 3.492 GB, free: 34.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005917/8.711, allocations: 0.5473 MB / 3.493 GB, free: 34.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00754/8.719, allocations: 1.441 MB / 3.494 GB, free: 33.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002936/8.719, allocations: 61.45 kB / 3.494 GB, free: 33.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009995/8.72, allocations: 78.81 kB / 3.494 GB, free: 33.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005486/8.726, allocations: 1.601 MB / 3.496 GB, free: 33.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006475/8.732, allocations: 1.797 MB / 3.498 GB, free: 32.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.493e-05/8.732, allocations: 10.12 kB / 3.498 GB, free: 32.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00047/8.733, allocations: 3.938 kB / 3.498 GB, free: 32.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001905/8.733, allocations: 104.2 kB / 3.498 GB, free: 32.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5893/9.322, allocations: 74.39 MB / 3.57 GB, free: 76.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/9.323, allocations: 0.6663 MB / 3.571 GB, free: 76.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007743/9.324, allocations: 0.5675 MB / 3.572 GB, free: 76.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03596/9.36, allocations: 17.43 MB / 3.589 GB, free: 66.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001871/9.362, allocations: 0.7212 MB / 3.589 GB, free: 65.93 MB / 458.7 MB Notification: Performance of pre-optimization done (n=86): time 5.13e-06/9.362, allocations: 0 / 3.589 GB, free: 65.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=94): time 0.01702/9.379, allocations: 4.785 MB / 3.594 GB, free: 64.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002424/9.379, allocations: 377.8 kB / 3.594 GB, free: 64.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/9.382, allocations: 0.8114 MB / 3.595 GB, free: 64.32 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001837/9.382, allocations: 25.7 kB / 3.595 GB, free: 64.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009216/9.383, allocations: 0.5353 MB / 3.596 GB, free: 64.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005648/9.384, allocations: 317 kB / 3.596 GB, free: 63.88 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.473e-05/9.384, allocations: 0 / 3.596 GB, free: 63.88 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/9.384, allocations: 354.8 kB / 3.596 GB, free: 63.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/9.385, allocations: 0.6673 MB / 3.597 GB, free: 63.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/9.387, allocations: 0.982 MB / 3.598 GB, free: 63.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008083/9.395, allocations: 1.906 MB / 3.6 GB, free: 63.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.905e-05/9.395, allocations: 6.844 kB / 3.6 GB, free: 63.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01141/9.406, allocations: 3.389 MB / 3.603 GB, free: 63.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001138/9.407, allocations: 3.232 MB / 3.606 GB, free: 59.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.055e-05/9.407, allocations: 8.094 kB / 3.606 GB, free: 59.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00046/9.408, allocations: 132.2 kB / 3.607 GB, free: 59.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/9.409, allocations: 327.4 kB / 3.607 GB, free: 59.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009842/9.41, allocations: 1.285 MB / 3.608 GB, free: 58.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/9.412, allocations: 166.1 kB / 3.608 GB, free: 58.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/9.413, allocations: 63.83 kB / 3.608 GB, free: 58.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/9.413, allocations: 6 kB / 3.608 GB, free: 58.66 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009534/9.422, allocations: 2.715 MB / 3.611 GB, free: 58.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-05/9.422, allocations: 11.22 kB / 3.611 GB, free: 58.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003806/9.423, allocations: 136.4 kB / 3.611 GB, free: 58.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/9.424, allocations: 320.9 kB / 3.611 GB, free: 58.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009043/9.425, allocations: 1.283 MB / 3.613 GB, free: 57.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/9.427, allocations: 144 kB / 3.613 GB, free: 57.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/9.427, allocations: 65.47 kB / 3.613 GB, free: 57.56 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000623/9.428, allocations: 180.2 kB / 3.613 GB, free: 57.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/9.429, allocations: 432.5 kB / 3.613 GB, free: 57.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007007/9.436, allocations: 3.691 MB / 3.617 GB, free: 57.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.605e-05/9.436, allocations: 34.95 kB / 3.617 GB, free: 57.06 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/9.436, allocations: 3.875 kB / 3.617 GB, free: 57.06 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004653/9.441, allocations: 2.899 MB / 3.62 GB, free: 56.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/9.453, allocations: 5.416 MB / 3.625 GB, free: 56.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/9.453, allocations: 7.125 kB / 3.625 GB, free: 56.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/9.454, allocations: 185.7 kB / 3.625 GB, free: 56.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005798/9.454, allocations: 169.5 kB / 3.626 GB, free: 56.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/9.454, allocations: 25.03 kB / 3.626 GB, free: 56.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/9.456, allocations: 1.368 MB / 3.627 GB, free: 54.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/9.456, allocations: 2.906 kB / 3.627 GB, free: 54.98 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007918/9.464, allocations: 4.04 MB / 3.631 GB, free: 54.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001893/9.465, allocations: 486.2 kB / 3.631 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008428/9.466, allocations: 15.06 kB / 3.631 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/9.468, allocations: 96.91 kB / 3.631 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/9.468, allocations: 71.91 kB / 3.631 GB, free: 54.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/9.469, allocations: 35.53 kB / 3.632 GB, free: 54.36 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002143/9.471, allocations: 0.8131 MB / 3.632 GB, free: 54.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01716/9.488, allocations: 2.122 MB / 3.634 GB, free: 54.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02053/9.509, allocations: 2.56 MB / 3.637 GB, free: 53.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008277/9.517, allocations: 3.199 MB / 3.64 GB, free: 53.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/9.517, allocations: 0 / 3.64 GB, free: 53.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002515/9.519, allocations: 1.529 MB / 3.642 GB, free: 53.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003918/9.523, allocations: 482.5 kB / 3.642 GB, free: 53.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05365/9.577, allocations: 17.41 MB / 3.659 GB, free: 52.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003506/9.581, allocations: 1.721 MB / 3.661 GB, free: 51.68 MB / 458.7 MB Notification: Performance of SimCode: time 2.615e-06/9.581, allocations: 0 / 3.661 GB, free: 51.68 MB / 458.7 MB Notification: Performance of Templates: time 0.1299/9.711, allocations: 65.53 MB / 3.725 GB, free: 27.64 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)