Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") [: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.2+maint.om/package.mo): time 0.003666/0.003666, allocations: 192.6 kB / 7.46 MB, free: 2.242 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.421/1.421, allocations: 194.2 MB / 202.1 MB, free: 8.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001853/0.001853, allocations: 115.6 kB / 247.1 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2227/0.2227, allocations: 39.94 MB / 331.9 MB, free: 4.805 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.354e-06/7.494e-06, allocations: 0 / 392.8 MB, free: 75.86 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1313, allocations: 54.86 MB / 447.6 MB, free: 20.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.889/6.02, allocations: 2.655 GB / 3.092 GB, free: 60.09 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/6.02, allocations: 75.75 kB / 3.092 GB, free: 60.05 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.353/8.373, allocations: 0.7978 GB / 3.89 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001846/8.373, allocations: 67.84 kB / 3.89 GB, free: 19.09 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01478/8.388, allocations: 4.071 MB / 3.894 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/8.388, allocations: 8.031 kB / 3.894 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006394/8.395, allocations: 0.8748 MB / 3.895 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006683/8.401, allocations: 2.179 MB / 3.897 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002123/8.402, allocations: 91.89 kB / 3.897 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009913/8.403, allocations: 116 kB / 3.897 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004871/8.408, allocations: 2.932 MB / 3.9 GB, free: 8.734 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003982/8.412, allocations: 2.934 MB / 3.903 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.034e-05/8.412, allocations: 0 / 3.903 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002368/8.412, allocations: 8 kB / 3.903 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/8.412, allocations: 183.5 kB / 3.903 GB, free: 5.406 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4916/8.904, allocations: 110 MB / 4.011 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/8.905, allocations: 1.172 MB / 4.012 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/8.907, allocations: 1.023 MB / 4.013 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03346/8.94, allocations: 17.53 MB / 4.03 GB, free: 23.96 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00218/8.942, allocations: 1.245 MB / 4.031 GB, free: 23.79 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=152): time 4.489e-06/8.942, allocations: 4 kB / 4.031 GB, free: 23.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=164): time 0.02083/8.963, allocations: 8.256 MB / 4.039 GB, free: 22.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004024/8.964, allocations: 0.5071 MB / 4.04 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00211/8.966, allocations: 1.203 MB / 4.041 GB, free: 21.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001899/8.966, allocations: 34.22 kB / 4.041 GB, free: 21.51 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007781/8.967, allocations: 0.7827 MB / 4.042 GB, free: 21.16 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005592/8.967, allocations: 0.5337 MB / 4.042 GB, free: 20.88 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/8.967, allocations: 2.906 kB / 4.042 GB, free: 20.88 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002109/8.968, allocations: 390.5 kB / 4.043 GB, free: 20.58 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/8.969, allocations: 1.152 MB / 4.044 GB, free: 20.57 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001768/8.971, allocations: 1.618 MB / 4.045 GB, free: 20.05 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/8.984, allocations: 3.104 MB / 4.048 GB, free: 19.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.732e-05/8.984, allocations: 3.031 kB / 4.048 GB, free: 19.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01944/9.004, allocations: 5.684 MB / 4.054 GB, free: 19.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002035/9.006, allocations: 4.451 MB / 4.058 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.681e-05/9.006, allocations: 12.97 kB / 4.058 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/9.009, allocations: 0.8672 MB / 4.059 GB, free: 15.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/9.012, allocations: 478.6 kB / 4.06 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003918/9.016, allocations: 3.532 MB / 4.063 GB, free: 13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00295/9.019, allocations: 231 kB / 4.063 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/9.019, allocations: 107.2 kB / 4.063 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/9.019, allocations: 3.344 kB / 4.063 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01518/9.034, allocations: 4.567 MB / 4.068 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.725e-05/9.034, allocations: 16.56 kB / 4.068 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/9.035, allocations: 350.7 kB / 4.068 GB, free: 12.81 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/9.037, allocations: 0.4915 MB / 4.069 GB, free: 12.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/9.041, allocations: 3.979 MB / 4.073 GB, free: 26.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002565/9.044, allocations: 207.9 kB / 4.073 GB, free: 26 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002495/9.044, allocations: 110.1 kB / 4.073 GB, free: 26 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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_b.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0007435/9.045, allocations: 234.9 kB / 4.073 GB, free: 25.83 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001907/9.047, allocations: 0.6314 MB / 4.074 GB, free: 25.73 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/9.057, allocations: 6.775 MB / 4.08 GB, free: 25.22 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.569e-05/9.057, allocations: 54.16 kB / 4.08 GB, free: 25.22 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/9.057, allocations: 7.688 kB / 4.08 GB, free: 25.22 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007728/9.065, allocations: 5.706 MB / 4.086 GB, free: 24.51 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/9.08, allocations: 9.277 MB / 4.095 GB, free: 23.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.83e-05/9.08, allocations: 1.281 kB / 4.095 GB, free: 23.65 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/9.081, allocations: 279.2 kB / 4.095 GB, free: 23.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004353/9.085, allocations: 2.056 MB / 4.097 GB, free: 23.55 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002931/9.086, allocations: 53 kB / 4.097 GB, free: 23.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004903/9.091, allocations: 4.28 MB / 4.101 GB, free: 21.41 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/9.091, allocations: 1.312 kB / 4.101 GB, free: 21.41 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01054/9.101, allocations: 7.213 MB / 4.109 GB, free: 17.58 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/9.103, allocations: 0.6874 MB / 4.109 GB, free: 17.14 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000424/9.104, allocations: 26.88 kB / 4.109 GB, free: 17.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/9.105, allocations: 147.7 kB / 4.109 GB, free: 17.02 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/9.105, allocations: 121.7 kB / 4.109 GB, free: 16.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/9.105, allocations: 69.36 kB / 4.11 GB, free: 16.92 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001538/9.107, allocations: 1.102 MB / 4.111 GB, free: 16.23 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01152/9.118, allocations: 2.721 MB / 4.113 GB, free: 14.07 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01441/9.133, allocations: 3.071 MB / 4.116 GB, free: 12 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009465/9.142, allocations: 5.599 MB / 4.122 GB, free: 8.684 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/9.142, allocations: 4 kB / 4.122 GB, free: 8.68 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003494/9.146, allocations: 2.699 MB / 4.124 GB, free: 7.355 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/9.15, allocations: 0.7426 MB / 4.125 GB, free: 6.945 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3525/9.503, allocations: 20.13 MB / 4.145 GB, free: 90.96 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001904/9.505, allocations: 2.329 MB / 4.147 GB, free: 90.19 MB / 0.573 GB Notification: Performance of SimCode: time 6.41e-07/9.505, allocations: 0 / 4.147 GB, free: 90.19 MB / 0.573 GB Notification: Performance of Templates: time 0.1221/9.627, allocations: 92.29 MB / 4.237 GB, free: 85.61 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)