Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") [: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.002956/0.002956, allocations: 186.2 kB / 7.459 MB, free: 2.508 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.361/1.361, allocations: 194.2 MB / 202.1 MB, free: 8.668 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.001868/0.001868, allocations: 119 kB / 247.1 MB, free: 6.363 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.1714/0.1714, allocations: 39.94 MB / 331.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.334e-06, allocations: 0 / 392.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 54.87 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.796/5.9, allocations: 2.663 GB / 3.1 GB, free: 108.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/5.9, allocations: 80.61 kB / 3.1 GB, free: 108.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.003/7.903, allocations: 497 MB / 3.586 GB, free: 40.77 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001144/7.903, allocations: 44.84 kB / 3.586 GB, free: 40.77 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01126/7.915, allocations: 2.99 MB / 3.589 GB, free: 39.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/7.915, allocations: 7.688 kB / 3.589 GB, free: 39.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005353/7.92, allocations: 0.7383 MB / 3.589 GB, free: 39.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003829/7.924, allocations: 1.583 MB / 3.591 GB, free: 39.33 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/7.924, allocations: 94.52 kB / 3.591 GB, free: 39.33 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002695/7.924, allocations: 106.8 kB / 3.591 GB, free: 39.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003965/7.928, allocations: 2.918 MB / 3.594 GB, free: 39.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003726/7.932, allocations: 2.948 MB / 3.597 GB, free: 38.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.82e-05/7.932, allocations: 14.95 kB / 3.597 GB, free: 38.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002094/7.932, allocations: 6.281 kB / 3.597 GB, free: 38.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/7.933, allocations: 177.9 kB / 3.597 GB, free: 38.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2855/8.218, allocations: 141.1 MB / 3.735 GB, free: 30.47 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003395/8.222, allocations: 1.153 MB / 3.736 GB, free: 30.45 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002528/8.224, allocations: 1.022 MB / 3.737 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03659/8.261, allocations: 16.73 MB / 3.753 GB, free: 19.52 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003788/8.265, allocations: 1.173 MB / 3.754 GB, free: 19.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 1.097e-05/8.265, allocations: 2.156 kB / 3.754 GB, free: 19.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.02403/8.289, allocations: 7.667 MB / 3.762 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002245/8.289, allocations: 231.1 kB / 3.762 GB, free: 18.05 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/8.291, allocations: 0.9557 MB / 3.763 GB, free: 17.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002944/8.292, allocations: 25.7 kB / 3.763 GB, free: 17.84 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008694/8.292, allocations: 0.776 MB / 3.764 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006852/8.293, allocations: 0.5287 MB / 3.764 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/8.293, allocations: 0 / 3.764 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003571/8.294, allocations: 447.3 kB / 3.765 GB, free: 16.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/8.296, allocations: 1.245 MB / 3.766 GB, free: 16.55 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002229/8.298, allocations: 1.775 MB / 3.768 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006735/8.305, allocations: 2.162 MB / 3.77 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/8.305, allocations: 4 kB / 3.77 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01433/8.319, allocations: 5.308 MB / 3.775 GB, free: 11.12 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.2865/8.606, allocations: 6.259 MB / 3.781 GB, free: 155.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.71e-05/8.606, allocations: 13.25 kB / 3.781 GB, free: 155.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/8.617, allocations: 2.851 MB / 3.784 GB, free: 155 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/8.619, allocations: 337.1 kB / 3.784 GB, free: 155 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008363/8.627, allocations: 4.834 MB / 3.789 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/8.63, allocations: 251.3 kB / 3.789 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003102/8.63, allocations: 113.7 kB / 3.789 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/8.63, allocations: 4.375 kB / 3.789 GB, free: 154.5 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009786/8.64, allocations: 4.19 MB / 3.793 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/8.64, allocations: 23.36 kB / 3.793 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007788/8.648, allocations: 2.187 MB / 3.796 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/8.65, allocations: 368 kB / 3.796 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/8.654, allocations: 3.642 MB / 3.799 GB, free: 153.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/8.657, allocations: 226.5 kB / 3.8 GB, free: 153.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/8.657, allocations: 107 kB / 3.8 GB, free: 153.9 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0006645/8.658, allocations: 165.9 kB / 3.8 GB, free: 153.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001549/8.659, allocations: 0.5099 MB / 3.8 GB, free: 153.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007236/8.667, allocations: 5.191 MB / 3.806 GB, free: 153.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.355e-05/8.667, allocations: 43.88 kB / 3.806 GB, free: 153.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/8.667, allocations: 0 / 3.806 GB, free: 153.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005533/8.672, allocations: 4.664 MB / 3.81 GB, free: 152.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/8.683, allocations: 7.672 MB / 3.818 GB, free: 152.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/8.683, allocations: 2.734 kB / 3.818 GB, free: 152.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/8.685, allocations: 365.9 kB / 3.818 GB, free: 152.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/8.686, allocations: 421.3 kB / 3.818 GB, free: 152.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/8.686, allocations: 45.45 kB / 3.818 GB, free: 152.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/8.688, allocations: 3.392 MB / 3.822 GB, free: 149.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/8.688, allocations: 5.531 kB / 3.822 GB, free: 149.6 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009304/8.698, allocations: 6.38 MB / 3.828 GB, free: 149.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/8.699, allocations: 0.5527 MB / 3.828 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/8.7, allocations: 18.02 kB / 3.828 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/8.701, allocations: 159.4 kB / 3.829 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/8.701, allocations: 155.7 kB / 3.829 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/8.702, allocations: 61.69 kB / 3.829 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0009668/8.702, allocations: 0.6826 MB / 3.83 GB, free: 149 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0099/8.712, allocations: 2.216 MB / 3.832 GB, free: 149 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01086/8.723, allocations: 2.148 MB / 3.834 GB, free: 148.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008831/8.732, allocations: 5.357 MB / 3.839 GB, free: 148.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/8.732, allocations: 1.688 kB / 3.839 GB, free: 148.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003362/8.736, allocations: 2.396 MB / 3.841 GB, free: 148.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003197/8.739, allocations: 0.5291 MB / 3.842 GB, free: 148.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009468/8.748, allocations: 5.019 MB / 3.847 GB, free: 148 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001836/8.75, allocations: 1.959 MB / 3.849 GB, free: 147.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.473e-06/8.75, allocations: 3.406 kB / 3.849 GB, free: 147.2 MB / 0.5573 GB Notification: Performance of Templates: time 0.1174/8.868, allocations: 84.1 MB / 3.931 GB, free: 136.9 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)