Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") [: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.005125/0.005125, 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.627/1.627, 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.001917/0.001917, allocations: 115.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.1898/0.1898, allocations: 37.98 MB / 294.8 MB, free: 9.602 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.002e-05/1.046e-05, allocations: 1.531 kB / 349.5 MB, free: 37.08 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 48.71 MB / 398.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.791/7.917, allocations: 2.561 GB / 2.95 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/7.917, allocations: 77.81 kB / 2.95 GB, free: 107.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.643/11.56, allocations: 0.7752 GB / 3.725 GB, free: 24.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000346/11.56, allocations: 63.02 kB / 3.725 GB, free: 24.07 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.02112/11.58, allocations: 3.657 MB / 3.729 GB, free: 22.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/11.58, allocations: 7.188 kB / 3.729 GB, free: 22.67 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007489/11.59, allocations: 0.7823 MB / 3.73 GB, free: 22.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007568/11.6, allocations: 1.988 MB / 3.732 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/11.6, allocations: 89.34 kB / 3.732 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000834/11.6, allocations: 101.6 kB / 3.732 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005012/11.6, allocations: 2.582 MB / 3.734 GB, free: 22.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004217/11.61, allocations: 2.56 MB / 3.737 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-05/11.61, allocations: 13.3 kB / 3.737 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/11.61, allocations: 10.86 kB / 3.737 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000171/11.61, allocations: 152 kB / 3.737 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2645/11.87, allocations: 109 MB / 3.844 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/11.87, allocations: 1.022 MB / 3.845 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/11.88, allocations: 0.9687 MB / 3.846 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03594/11.91, allocations: 17.47 MB / 3.863 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002251/11.91, allocations: 1.152 MB / 3.864 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=141): time 4.358e-06/11.91, allocations: 0 / 3.864 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=153): time 0.03638/11.95, allocations: 9.034 MB / 3.873 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000243/11.95, allocations: 362.8 kB / 3.873 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/11.95, allocations: 1.029 MB / 3.874 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002111/11.95, allocations: 27.58 kB / 3.874 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006786/11.95, allocations: 0.6964 MB / 3.875 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/11.95, allocations: 0.4948 MB / 3.875 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/11.95, allocations: 2.906 kB / 3.875 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002033/11.95, allocations: 381.4 kB / 3.875 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/11.96, allocations: 0.996 MB / 3.876 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/11.96, allocations: 1.418 MB / 3.878 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00906/11.97, allocations: 1.965 MB / 3.88 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/11.97, allocations: 3.5 kB / 3.88 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01509/11.98, allocations: 4.274 MB / 3.884 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001825/11.98, allocations: 4.245 MB / 3.888 GB, free: 8.316 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/11.98, allocations: 11.75 kB / 3.888 GB, free: 8.316 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002372/11.99, allocations: 0.5216 MB / 3.889 GB, free: 8.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/11.99, allocations: 464.3 kB / 3.889 GB, free: 8.266 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/11.99, allocations: 2.912 MB / 3.892 GB, free: 5.844 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/11.99, allocations: 257.1 kB / 3.892 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/11.99, allocations: 92.91 kB / 3.892 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/11.99, allocations: 4 kB / 3.892 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01187/12.01, allocations: 3.156 MB / 3.895 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.389e-05/12.01, allocations: 12 kB / 3.895 GB, free: 3.785 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005711/12.01, allocations: 188.8 kB / 3.895 GB, free: 3.668 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/12.01, allocations: 478.8 kB / 3.896 GB, free: 3.312 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/12.01, allocations: 1.915 MB / 3.898 GB, free: 1.535 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/12.01, allocations: 235.6 kB / 3.898 GB, free: 1.359 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003346/12.01, allocations: 92.64 kB / 3.898 GB, free: 1.293 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008001/12.01, allocations: 231.2 kB / 3.898 GB, free: 1.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002302/12.02, allocations: 0.6064 MB / 3.899 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.316/12.33, allocations: 6.853 MB / 3.906 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.314e-05/12.33, allocations: 52 kB / 3.906 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/12.33, allocations: 5.391 kB / 3.906 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01199/12.34, allocations: 5.782 MB / 3.911 GB, free: 113.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02255/12.37, allocations: 10.05 MB / 3.921 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/12.37, allocations: 7.594 kB / 3.921 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/12.37, allocations: 287.2 kB / 3.921 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002028/12.37, allocations: 1.173 MB / 3.923 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/12.37, allocations: 52.98 kB / 3.923 GB, free: 112 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/12.37, allocations: 3.401 MB / 3.926 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/12.37, allocations: 9.25 kB / 3.926 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01545/12.39, allocations: 7.564 MB / 3.933 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001716/12.39, allocations: 0.6371 MB / 3.934 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004951/12.39, allocations: 23.69 kB / 3.934 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/12.39, allocations: 142.9 kB / 3.934 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/12.39, allocations: 131 kB / 3.934 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/12.39, allocations: 75.52 kB / 3.934 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001469/12.39, allocations: 0.9621 MB / 3.935 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01178/12.41, allocations: 2.45 MB / 3.938 GB, free: 108.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 37 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (153): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01338/12.42, allocations: 2.895 MB / 3.94 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007709/12.43, allocations: 4.832 MB / 3.945 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/12.43, allocations: 0 / 3.945 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003685/12.43, allocations: 2.914 MB / 3.948 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004523/12.44, allocations: 0.6675 MB / 3.949 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04908/12.48, allocations: 19.3 MB / 3.968 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003657/12.49, allocations: 2.197 MB / 3.97 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.393e-06/12.49, allocations: 0 / 3.97 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.1406/12.63, allocations: 82.83 MB / 4.051 GB, free: 96.68 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)