Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") [: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 4.0.0+maint.om/package.mo): time 0.001387/0.001392, allocations: 187.1 kB / 8.523 MB, free: 1.699 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.4 MB / 230.3 MB, free: 7.727 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009869/0.0009869, allocations: 88.73 kB / 281.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2484/0.2484, allocations: 44.16 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.468e-06/9.508e-06, allocations: 3.938 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.183, allocations: 61.91 MB / 0.4941 GB, free: 1.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.626/1.809, allocations: 0.5606 GB / 1.055 GB, free: 44.45 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004325/1.809, allocations: 80.98 kB / 1.055 GB, free: 44.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.459/4.268, allocations: 0.5035 GB / 1.558 GB, free: 51.09 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003726/4.268, allocations: 60.47 kB / 1.558 GB, free: 51.09 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01285/4.281, allocations: 2.817 MB / 1.561 GB, free: 49.96 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/4.281, allocations: 10.06 kB / 1.561 GB, free: 49.96 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00442/4.286, allocations: 445.1 kB / 1.562 GB, free: 49.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00828/4.294, allocations: 1.946 MB / 1.563 GB, free: 49.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/4.294, allocations: 58.33 kB / 1.564 GB, free: 49.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/4.296, allocations: 101.1 kB / 1.564 GB, free: 49.4 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006163/4.302, allocations: 2.196 MB / 1.566 GB, free: 49.39 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006679/4.309, allocations: 2.436 MB / 1.568 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-05/4.309, allocations: 5.469 kB / 1.568 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006028/4.309, allocations: 11.05 kB / 1.568 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002336/4.31, allocations: 160.6 kB / 1.568 GB, free: 48.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02119/4.331, allocations: 11.78 MB / 1.58 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/4.333, allocations: 1.046 MB / 1.581 GB, free: 42.13 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/4.335, allocations: 1.012 MB / 1.582 GB, free: 42.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009881/4.336, allocations: 0.5005 MB / 1.582 GB, free: 41.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002062/4.338, allocations: 1.188 MB / 1.583 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 8.246e-06/4.338, allocations: 0 / 1.583 GB, free: 41.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=173): time 0.04368/4.381, allocations: 9.036 MB / 1.592 GB, free: 40.58 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/4.382, allocations: 365 kB / 1.593 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003023/4.385, allocations: 1.08 MB / 1.594 GB, free: 40 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004966/4.385, allocations: 30.33 kB / 1.594 GB, free: 39.97 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001024/4.386, allocations: 0.6623 MB / 1.594 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009004/4.387, allocations: 0.5667 MB / 1.595 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003108/4.388, allocations: 4.5 kB / 1.595 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002105/4.388, allocations: 383.6 kB / 1.595 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/4.39, allocations: 1.011 MB / 1.596 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/4.392, allocations: 1.434 MB / 1.598 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/4.403, allocations: 2.289 MB / 1.6 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.491e-05/4.403, allocations: 0 / 1.6 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01682/4.42, allocations: 3.928 MB / 1.604 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00122/4.421, allocations: 3.65 MB / 1.607 GB, free: 34.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-05/4.421, allocations: 6.312 kB / 1.607 GB, free: 34.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005301/4.422, allocations: 172.1 kB / 1.608 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/4.425, allocations: 0.5353 MB / 1.608 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/4.426, allocations: 2.366 MB / 1.61 GB, free: 32.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003732/4.43, allocations: 168.7 kB / 1.61 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008253/4.431, allocations: 182.8 kB / 1.611 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/4.431, allocations: 3.031 kB / 1.611 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01419/4.445, allocations: 3.389 MB / 1.614 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.497e-05/4.445, allocations: 8.875 kB / 1.614 GB, free: 32.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00041/4.446, allocations: 167.7 kB / 1.614 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003024/4.449, allocations: 0.5256 MB / 1.615 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/4.451, allocations: 2.365 MB / 1.617 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/4.455, allocations: 168.6 kB / 1.617 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/4.456, allocations: 183.4 kB / 1.617 GB, free: 30.24 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.00204/4.458, allocations: 229.8 kB / 1.618 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/4.46, allocations: 189.9 kB / 1.618 GB, free: 29.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/4.481, allocations: 5.103 MB / 1.623 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/4.481, allocations: 20.91 kB / 1.623 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/4.481, allocations: 0 / 1.623 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01455/4.495, allocations: 3.502 MB / 1.626 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02848/4.524, allocations: 6.83 MB / 1.633 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.174e-05/4.524, allocations: 5.562 kB / 1.633 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/4.527, allocations: 409.7 kB / 1.633 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005792/4.527, allocations: 166 kB / 1.633 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005754/4.528, allocations: 76.38 kB / 1.633 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/4.53, allocations: 3.027 MB / 1.636 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.565e-05/4.53, allocations: 9.469 kB / 1.636 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02244/4.553, allocations: 5.304 MB / 1.642 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002522/4.555, allocations: 0.5137 MB / 1.642 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/4.556, allocations: 30.7 kB / 1.642 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/4.559, allocations: 90.69 kB / 1.642 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004706/4.56, allocations: 142.2 kB / 1.642 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005053/4.56, allocations: 147.5 kB / 1.642 GB, free: 23.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00263/4.563, allocations: 0.8006 MB / 1.643 GB, free: 23.47 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01261/4.575, allocations: 1.641 MB / 1.645 GB, free: 23.18 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01055/4.586, allocations: 2.377 MB / 1.647 GB, free: 22.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0107/4.597, allocations: 3.995 MB / 1.651 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.806e-05/4.597, allocations: 4 kB / 1.651 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002698/4.6, allocations: 1.382 MB / 1.652 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006147/4.606, allocations: 0.7482 MB / 1.653 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/4.62, allocations: 4.044 MB / 1.657 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00537/4.626, allocations: 2.24 MB / 1.659 GB, free: 13 MB / 0.5261 GB Notification: Performance of SimCode: time 2.235e-06/4.626, allocations: 0 / 1.659 GB, free: 13 MB / 0.5261 GB Notification: Performance of Templates: time 0.5509/5.177, allocations: 71.16 MB / 1.729 GB, free: 116.9 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)