Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") [: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.003128/0.003128, allocations: 178.6 kB / 7.451 MB, free: 2.512 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.452/1.452, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001718/0.001718, allocations: 104.4 kB / 217.7 MB, free: 8.227 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.1879/0.1879, allocations: 37.96 MB / 294.8 MB, free: 9.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.078e-05/1.081e-05, allocations: 1.188 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 48.71 MB / 398.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.077/8.214, allocations: 2.545 GB / 2.934 GB, free: 114.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/8.215, allocations: 78.22 kB / 2.934 GB, free: 114.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.375/11.59, allocations: 0.8373 GB / 3.771 GB, free: 33.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001908/11.59, allocations: 57.47 kB / 3.771 GB, free: 33.08 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01614/11.61, allocations: 3.715 MB / 3.775 GB, free: 31.43 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/11.61, allocations: 7.719 kB / 3.775 GB, free: 31.43 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006864/11.61, allocations: 0.7829 MB / 3.776 GB, free: 31.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006199/11.62, allocations: 1.952 MB / 3.778 GB, free: 30.86 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/11.62, allocations: 89.12 kB / 3.778 GB, free: 30.86 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005987/11.62, allocations: 109.5 kB / 3.778 GB, free: 30.86 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004299/11.62, allocations: 2.391 MB / 3.78 GB, free: 30.85 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/11.63, allocations: 2.607 MB / 3.783 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.228e-05/11.63, allocations: 6.156 kB / 3.783 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/11.63, allocations: 6.688 kB / 3.783 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/11.63, allocations: 155 kB / 3.783 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2753/11.9, allocations: 109.5 MB / 3.89 GB, free: 20.61 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/11.91, allocations: 1.008 MB / 3.891 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/11.91, allocations: 0.8992 MB / 3.892 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03918/11.95, allocations: 17.53 MB / 3.909 GB, free: 5.512 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002825/11.95, allocations: 1.108 MB / 3.91 GB, free: 4.875 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=132): time 6.061e-06/11.95, allocations: 2.344 kB / 3.91 GB, free: 4.875 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144): time 0.3457/12.3, allocations: 7.418 MB / 3.917 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/12.3, allocations: 364.7 kB / 3.917 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002132/12.3, allocations: 1.079 MB / 3.919 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006966/12.3, allocations: 29.52 kB / 3.919 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000883/12.3, allocations: 0.7215 MB / 3.919 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006754/12.3, allocations: 481.4 kB / 3.92 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/12.3, allocations: 3.969 kB / 3.92 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001549/12.3, allocations: 379.8 kB / 3.92 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/12.3, allocations: 0.9921 MB / 3.921 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/12.31, allocations: 1.394 MB / 3.922 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/12.32, allocations: 2.901 MB / 3.925 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.762e-05/12.32, allocations: 3.969 kB / 3.925 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01841/12.34, allocations: 5.248 MB / 3.93 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001355/12.34, allocations: 4.235 MB / 3.935 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/12.34, allocations: 15.56 kB / 3.935 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/12.34, allocations: 0.5762 MB / 3.935 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/12.34, allocations: 449.7 kB / 3.936 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002977/12.34, allocations: 3.092 MB / 3.939 GB, free: 98.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/12.35, allocations: 233 kB / 3.939 GB, free: 98.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/12.35, allocations: 94.84 kB / 3.939 GB, free: 98.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/12.35, allocations: 4.406 kB / 3.939 GB, free: 98.03 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01425/12.36, allocations: 4.09 MB / 3.943 GB, free: 97.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/12.36, allocations: 13.5 kB / 3.943 GB, free: 97.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/12.36, allocations: 199.9 kB / 3.943 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/12.36, allocations: 466.6 kB / 3.944 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/12.37, allocations: 1.92 MB / 3.945 GB, free: 96.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/12.37, allocations: 206.8 kB / 3.946 GB, free: 96.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000222/12.37, allocations: 92.02 kB / 3.946 GB, free: 96.37 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006716/12.37, allocations: 230.1 kB / 3.946 GB, free: 96.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002207/12.37, allocations: 0.604 MB / 3.946 GB, free: 96.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009999/12.38, allocations: 6.266 MB / 3.953 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.572e-05/12.38, allocations: 56.25 kB / 3.953 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/12.38, allocations: 5.344 kB / 3.953 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007055/12.39, allocations: 5.253 MB / 3.958 GB, free: 94.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/12.4, allocations: 8.622 MB / 3.966 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/12.4, allocations: 0 / 3.966 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/12.4, allocations: 262.7 kB / 3.966 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/12.41, allocations: 1.298 MB / 3.968 GB, free: 94.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002424/12.41, allocations: 49.5 kB / 3.968 GB, free: 94.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003803/12.41, allocations: 3.612 MB / 3.971 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/12.41, allocations: 3.625 kB / 3.971 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01211/12.42, allocations: 6.6 MB / 3.978 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001906/12.42, allocations: 0.637 MB / 3.978 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003883/12.42, allocations: 16.17 kB / 3.978 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/12.43, allocations: 146.3 kB / 3.979 GB, free: 91.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/12.43, allocations: 115.9 kB / 3.979 GB, free: 91.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/12.43, allocations: 60.98 kB / 3.979 GB, free: 91.15 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001526/12.43, allocations: 1.011 MB / 3.98 GB, free: 91.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01202/12.44, allocations: 2.587 MB / 3.982 GB, free: 91.01 MB / 0.5105 GB 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,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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (139): * Single equations (assignments): 123 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01665/12.46, allocations: 3.103 MB / 3.985 GB, free: 90.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007798/12.46, allocations: 4.798 MB / 3.99 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/12.46, allocations: 3.562 kB / 3.99 GB, free: 90.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003761/12.47, allocations: 2.569 MB / 3.992 GB, free: 90.47 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/12.47, allocations: 0.757 MB / 3.993 GB, free: 90.45 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0487/12.52, allocations: 19.17 MB / 4.012 GB, free: 89.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/12.52, allocations: 2.202 MB / 4.014 GB, free: 88.74 MB / 0.5105 GB Notification: Performance of SimCode: time 2.334e-06/12.52, allocations: 0 / 4.014 GB, free: 88.74 MB / 0.5105 GB Notification: Performance of Templates: time 0.1371/12.66, allocations: 85.99 MB / 4.098 GB, free: 66.89 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)