Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") [: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.005465/0.005465, allocations: 174.8 kB / 7.45 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.432/1.432, allocations: 170.6 MB / 178.4 MB, free: 15.4 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.001918/0.001918, allocations: 116.4 kB / 217.7 MB, free: 8.16 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.199/0.199, allocations: 37.97 MB / 294.8 MB, free: 9.625 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.007e-06/9.187e-06, allocations: 1.25 kB / 349.5 MB, free: 37.05 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 48.72 MB / 398.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.904/8.031, allocations: 2.562 GB / 2.951 GB, free: 106.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/8.032, allocations: 80.23 kB / 2.951 GB, free: 106.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.926/11.96, allocations: 0.8425 GB / 3.793 GB, free: 21.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003561/11.96, allocations: 60.69 kB / 3.793 GB, free: 21.81 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01681/11.98, allocations: 3.642 MB / 3.797 GB, free: 20.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/11.98, allocations: 11.56 kB / 3.797 GB, free: 20.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007004/11.98, allocations: 0.784 MB / 3.798 GB, free: 20.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006958/11.99, allocations: 1.979 MB / 3.8 GB, free: 19.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/11.99, allocations: 86.02 kB / 3.8 GB, free: 19.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004274/11.99, allocations: 108.4 kB / 3.8 GB, free: 19.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00399/11.99, allocations: 2.353 MB / 3.802 GB, free: 19.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/12, allocations: 2.58 MB / 3.805 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.066e-05/12, allocations: 9.656 kB / 3.805 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002089/12, allocations: 2.969 kB / 3.805 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/12, allocations: 158.5 kB / 3.805 GB, free: 19.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5289/12.53, allocations: 109.3 MB / 3.912 GB, free: 97.66 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/12.53, allocations: 1.019 MB / 3.913 GB, free: 97.64 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/12.53, allocations: 0.9645 MB / 3.913 GB, free: 97.62 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03235/12.56, allocations: 17.46 MB / 3.931 GB, free: 86.64 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002135/12.56, allocations: 1.156 MB / 3.932 GB, free: 86.48 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=141): time 3.367e-06/12.56, allocations: 0 / 3.932 GB, free: 86.48 MB / 0.4949 GB Notification: Performance of matching and sorting (n=153): time 0.03543/12.6, allocations: 9.062 MB / 3.941 GB, free: 85.12 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/12.6, allocations: 365.9 kB / 3.941 GB, free: 84.71 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/12.6, allocations: 1.037 MB / 3.942 GB, free: 84.55 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0002146/12.6, allocations: 29.64 kB / 3.942 GB, free: 84.52 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006281/12.6, allocations: 0.7072 MB / 3.943 GB, free: 84.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.000509/12.6, allocations: 0.4925 MB / 3.943 GB, free: 83.95 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/12.6, allocations: 3.344 kB / 3.943 GB, free: 83.95 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001439/12.6, allocations: 380 kB / 3.943 GB, free: 83.64 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/12.6, allocations: 0.9969 MB / 3.944 GB, free: 83.64 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/12.61, allocations: 1.417 MB / 3.946 GB, free: 83.21 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008726/12.62, allocations: 1.955 MB / 3.948 GB, free: 83.2 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/12.62, allocations: 4.625 kB / 3.948 GB, free: 83.2 MB / 0.4949 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01506/12.63, allocations: 4.275 MB / 3.952 GB, free: 83 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.001403/12.63, allocations: 4.245 MB / 3.956 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-05/12.63, allocations: 12.91 kB / 3.956 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/12.63, allocations: 0.5259 MB / 3.957 GB, free: 78.61 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/12.64, allocations: 462.5 kB / 3.957 GB, free: 78.61 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002822/12.64, allocations: 2.905 MB / 3.96 GB, free: 76.54 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003418/12.64, allocations: 267.5 kB / 3.96 GB, free: 76.52 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000464/12.64, allocations: 100.9 kB / 3.96 GB, free: 76.52 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/12.64, allocations: 3.875 kB / 3.96 GB, free: 76.52 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01182/12.66, allocations: 3.148 MB / 3.963 GB, free: 76.46 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.443e-05/12.66, allocations: 9.312 kB / 3.963 GB, free: 76.46 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004587/12.66, allocations: 199.2 kB / 3.963 GB, free: 76.43 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002011/12.66, allocations: 473.7 kB / 3.964 GB, free: 76.43 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/12.66, allocations: 1.923 MB / 3.966 GB, free: 74.88 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/12.66, allocations: 238.3 kB / 3.966 GB, free: 74.87 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003804/12.66, allocations: 96.39 kB / 3.966 GB, free: 74.87 MB / 0.4949 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.0007803/12.66, allocations: 229.2 kB / 3.966 GB, free: 74.69 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002264/12.67, allocations: 0.6093 MB / 3.967 GB, free: 74.61 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01992/12.69, allocations: 6.689 MB / 3.973 GB, free: 74.15 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.6e-05/12.69, allocations: 53.2 kB / 3.974 GB, free: 74.15 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/12.69, allocations: 3.547 kB / 3.974 GB, free: 74.15 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01348/12.7, allocations: 5.782 MB / 3.979 GB, free: 73.45 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/12.72, allocations: 10.06 MB / 3.989 GB, free: 72.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.712e-05/12.72, allocations: 8.594 kB / 3.989 GB, free: 72.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/12.72, allocations: 293.8 kB / 3.989 GB, free: 72.2 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/12.73, allocations: 1.184 MB / 3.99 GB, free: 72.13 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003466/12.73, allocations: 45.5 kB / 3.99 GB, free: 72.13 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00271/12.73, allocations: 3.396 MB / 3.994 GB, free: 70.03 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-05/12.73, allocations: 5.906 kB / 3.994 GB, free: 70.03 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01728/12.75, allocations: 7.572 MB / 4.001 GB, free: 68.94 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/12.75, allocations: 0.6358 MB / 4.002 GB, free: 68.72 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009373/12.75, allocations: 21.34 kB / 4.002 GB, free: 68.72 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002258/12.75, allocations: 157.1 kB / 4.002 GB, free: 68.71 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003693/12.75, allocations: 132.5 kB / 4.002 GB, free: 68.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/12.75, allocations: 71.34 kB / 4.002 GB, free: 68.7 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.002077/12.75, allocations: 0.9715 MB / 4.003 GB, free: 68.59 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01359/12.77, allocations: 2.475 MB / 4.006 GB, free: 68.55 MB / 0.4949 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,$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 (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.01648/12.79, allocations: 3 MB / 4.008 GB, free: 68.27 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.009812/12.79, allocations: 4.833 MB / 4.013 GB, free: 68.08 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/12.79, allocations: 0 / 4.013 GB, free: 68.08 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004119/12.8, allocations: 2.928 MB / 4.016 GB, free: 68.01 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004893/12.8, allocations: 0.747 MB / 4.017 GB, free: 68 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05026/12.85, allocations: 19.31 MB / 4.036 GB, free: 66.65 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003779/12.86, allocations: 2.217 MB / 4.038 GB, free: 65.86 MB / 0.4949 GB Notification: Performance of SimCode: time 1.223e-06/12.86, allocations: 0 / 4.038 GB, free: 65.86 MB / 0.4949 GB Notification: Performance of Templates: time 0.4966/13.35, allocations: 84 MB / 4.12 GB, free: 97.83 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)