Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.005569/0.005569, allocations: 176.3 kB / 7.452 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.579/1.579, allocations: 170.6 MB / 178.4 MB, free: 15.79 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.001798/0.001798, allocations: 120.5 kB / 217.7 MB, free: 8.559 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.97 MB / 294.8 MB, free: 9.66 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.885e-06, allocations: 1.438 kB / 349.5 MB, free: 37.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 48.71 MB / 398.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.798/7.926, allocations: 2.552 GB / 2.941 GB, free: 45.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/7.927, allocations: 82.48 kB / 2.941 GB, free: 45.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.443/10.37, allocations: 486.3 MB / 3.416 GB, free: 49.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002349/10.37, allocations: 42.91 kB / 3.416 GB, free: 49.63 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01711/10.39, allocations: 2.935 MB / 3.419 GB, free: 48.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/10.39, allocations: 13.22 kB / 3.419 GB, free: 48.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007449/10.39, allocations: 0.7175 MB / 3.42 GB, free: 48.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008398/10.4, allocations: 1.579 MB / 3.421 GB, free: 47.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003453/10.4, allocations: 99.78 kB / 3.422 GB, free: 47.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001439/10.4, allocations: 108.3 kB / 3.422 GB, free: 47.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007709/10.41, allocations: 2.916 MB / 3.424 GB, free: 47.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008727/10.42, allocations: 2.952 MB / 3.427 GB, free: 46.04 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/10.42, allocations: 9.797 kB / 3.427 GB, free: 46.04 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008794/10.42, allocations: 3.812 kB / 3.427 GB, free: 46.04 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002033/10.42, allocations: 186.4 kB / 3.428 GB, free: 46.02 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6707/11.09, allocations: 140.9 MB / 3.565 GB, free: 25.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/11.1, allocations: 1.16 MB / 3.566 GB, free: 25.47 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/11.1, allocations: 1.018 MB / 3.567 GB, free: 25.45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0391/11.14, allocations: 16.73 MB / 3.584 GB, free: 30.55 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00402/11.14, allocations: 1.18 MB / 3.585 GB, free: 30.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=139): time 8.406e-06/11.14, allocations: 3.844 kB / 3.585 GB, free: 30.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=159): time 0.02636/11.17, allocations: 7.654 MB / 3.592 GB, free: 29.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002611/11.17, allocations: 227.1 kB / 3.593 GB, free: 29.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/11.17, allocations: 0.9488 MB / 3.593 GB, free: 29.12 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004545/11.17, allocations: 29.2 kB / 3.593 GB, free: 29.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/11.17, allocations: 0.7765 MB / 3.594 GB, free: 28.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009248/11.17, allocations: 0.5324 MB / 3.595 GB, free: 28.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003188/11.17, allocations: 2.297 kB / 3.595 GB, free: 28.44 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003878/11.17, allocations: 444.4 kB / 3.595 GB, free: 28.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/11.18, allocations: 1.236 MB / 3.596 GB, free: 28.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002231/11.18, allocations: 1.785 MB / 3.598 GB, free: 27.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006719/11.18, allocations: 2.151 MB / 3.6 GB, free: 27.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-05/11.18, allocations: 11.06 kB / 3.6 GB, free: 27.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01574/11.2, allocations: 5.307 MB / 3.605 GB, free: 27.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003734/11.2, allocations: 6.262 MB / 3.612 GB, free: 20.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.612e-05/11.2, allocations: 17.19 kB / 3.612 GB, free: 20.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01219/11.22, allocations: 2.849 MB / 3.614 GB, free: 20.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001919/11.22, allocations: 334.6 kB / 3.615 GB, free: 20.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/11.23, allocations: 4.833 MB / 3.619 GB, free: 19.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004461/11.24, allocations: 245.2 kB / 3.62 GB, free: 19.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008709/11.24, allocations: 114 kB / 3.62 GB, free: 19.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/11.24, allocations: 13.8 kB / 3.62 GB, free: 19.95 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0129/11.25, allocations: 4.189 MB / 3.624 GB, free: 19.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.93e-05/11.25, allocations: 19.41 kB / 3.624 GB, free: 19.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008633/11.26, allocations: 2.186 MB / 3.626 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/11.26, allocations: 363.6 kB / 3.626 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/11.27, allocations: 3.645 MB / 3.63 GB, free: 19.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003365/11.27, allocations: 233.5 kB / 3.63 GB, free: 19.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007047/11.27, allocations: 105.9 kB / 3.63 GB, free: 19.19 MB / 490.7 MB 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.001354/11.27, allocations: 167.3 kB / 3.63 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002512/11.28, allocations: 0.5061 MB / 3.631 GB, free: 19.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/11.29, allocations: 5.19 MB / 3.636 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.638e-05/11.29, allocations: 41.95 kB / 3.636 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/11.29, allocations: 1.375 kB / 3.636 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009205/11.3, allocations: 4.665 MB / 3.641 GB, free: 17.99 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/11.32, allocations: 7.681 MB / 3.648 GB, free: 16.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/11.32, allocations: 0 / 3.648 GB, free: 16.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/11.32, allocations: 362.1 kB / 3.648 GB, free: 16.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/11.32, allocations: 429.9 kB / 3.649 GB, free: 16.23 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002325/11.32, allocations: 40.23 kB / 3.649 GB, free: 16.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/11.32, allocations: 3.405 MB / 3.652 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/11.32, allocations: 0 / 3.652 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01108/11.33, allocations: 6.388 MB / 3.658 GB, free: 8.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002154/11.33, allocations: 0.5447 MB / 3.659 GB, free: 7.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008331/11.34, allocations: 23.22 kB / 3.659 GB, free: 7.734 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002404/11.34, allocations: 161 kB / 3.659 GB, free: 7.621 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003729/11.34, allocations: 146.7 kB / 3.659 GB, free: 7.543 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/11.34, allocations: 63.2 kB / 3.659 GB, free: 7.492 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001498/11.34, allocations: 0.6871 MB / 3.66 GB, free: 6.859 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01268/11.35, allocations: 2.206 MB / 3.662 GB, free: 4.941 MB / 490.7 MB 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.01292/11.37, allocations: 2.14 MB / 3.664 GB, free: 3.406 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0182/11.38, allocations: 5.782 MB / 3.67 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-05/11.38, allocations: 3.281 kB / 3.67 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005675/11.39, allocations: 2.398 MB / 3.672 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004276/11.39, allocations: 0.5191 MB / 3.673 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/11.41, allocations: 5.023 MB / 3.678 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003764/11.41, allocations: 1.963 MB / 3.68 GB, free: 7.25 MB / 0.4948 GB Notification: Performance of SimCode: time 1.323e-06/11.41, allocations: 0 / 3.68 GB, free: 7.25 MB / 0.4948 GB Notification: Performance of Templates: time 0.4931/11.91, allocations: 84 MB / 3.762 GB, free: 89.36 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)