Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") [: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.00615/0.00615, allocations: 179.2 kB / 7.453 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.427/1.427, allocations: 170.6 MB / 178.4 MB, free: 15.45 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.001735/0.001735, allocations: 123.8 kB / 217.7 MB, free: 8.199 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.602 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.333e-06/7.364e-06, allocations: 1.156 kB / 349.5 MB, free: 37.11 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 48.7 MB / 398.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.638/7.758, allocations: 2.544 GB / 2.933 GB, free: 57.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/7.759, allocations: 75.34 kB / 2.933 GB, free: 57.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.418/10.18, allocations: 449.7 MB / 3.372 GB, free: 43.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001085/10.18, allocations: 31.28 kB / 3.372 GB, free: 43.89 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01031/10.19, allocations: 2.096 MB / 3.374 GB, free: 43.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/10.19, allocations: 11.62 kB / 3.374 GB, free: 43.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003052/10.19, allocations: 378.7 kB / 3.374 GB, free: 42.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/10.19, allocations: 0.8883 MB / 3.375 GB, free: 42.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.052e-05/10.19, allocations: 34.56 kB / 3.375 GB, free: 42.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/10.19, allocations: 49.84 kB / 3.375 GB, free: 42.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001697/10.2, allocations: 0.9449 MB / 3.376 GB, free: 42.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/10.2, allocations: 1.109 MB / 3.377 GB, free: 42.41 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/10.2, allocations: 0 / 3.377 GB, free: 42.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.084e-05/10.2, allocations: 3.562 kB / 3.377 GB, free: 42.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.499e-05/10.2, allocations: 61.11 kB / 3.377 GB, free: 42.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2444/10.44, allocations: 101 MB / 3.476 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/10.44, allocations: 345.8 kB / 3.476 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/10.44, allocations: 286.3 kB / 3.477 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04402/10.49, allocations: 16.77 MB / 3.493 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.348e-05/10.49, allocations: 36.44 kB / 3.493 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 3.827e-06/10.49, allocations: 0 / 3.493 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.01022/10.5, allocations: 2.338 MB / 3.495 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/10.5, allocations: 136.1 kB / 3.496 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/10.5, allocations: 0.5822 MB / 3.496 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001491/10.5, allocations: 29.7 kB / 3.496 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003999/10.5, allocations: 398.4 kB / 3.497 GB, free: 29.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/10.5, allocations: 155.5 kB / 3.497 GB, free: 29.78 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-05/10.5, allocations: 0 / 3.497 GB, free: 29.78 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002526/10.5, allocations: 379.8 kB / 3.497 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006938/10.5, allocations: 369.6 kB / 3.497 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/10.5, allocations: 0.5615 MB / 3.498 GB, free: 28.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/10.51, allocations: 1.039 MB / 3.499 GB, free: 28.26 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/10.51, allocations: 0 / 3.499 GB, free: 28.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.008536/10.52, allocations: 2.223 MB / 3.501 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001424/10.52, allocations: 2.268 MB / 3.503 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/10.52, allocations: 7.562 kB / 3.503 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002075/10.52, allocations: 0.4993 MB / 3.504 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006956/10.52, allocations: 160.5 kB / 3.504 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002948/10.52, allocations: 1.551 MB / 3.505 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/10.52, allocations: 131.2 kB / 3.506 GB, free: 23.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/10.53, allocations: 41.81 kB / 3.506 GB, free: 23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/10.53, allocations: 4.562 kB / 3.506 GB, free: 23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006494/10.53, allocations: 1.626 MB / 3.507 GB, free: 22.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/10.53, allocations: 8 kB / 3.507 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/10.53, allocations: 393.9 kB / 3.508 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007267/10.53, allocations: 181.2 kB / 3.508 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/10.54, allocations: 1.17 MB / 3.509 GB, free: 20.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/10.54, allocations: 104.4 kB / 3.509 GB, free: 20.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/10.54, allocations: 41.08 kB / 3.509 GB, free: 20.74 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004507/10.54, allocations: 123.8 kB / 3.509 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/10.54, allocations: 325.5 kB / 3.51 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/10.54, allocations: 1.854 MB / 3.511 GB, free: 19.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/10.54, allocations: 20.05 kB / 3.511 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.148e-06/10.54, allocations: 0 / 3.511 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002499/10.55, allocations: 1.766 MB / 3.513 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005167/10.55, allocations: 2.812 MB / 3.516 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/10.55, allocations: 7.812 kB / 3.516 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/10.55, allocations: 118.6 kB / 3.516 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003282/10.55, allocations: 81.05 kB / 3.516 GB, free: 16.51 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-05/10.55, allocations: 21.52 kB / 3.516 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005591/10.55, allocations: 0.6798 MB / 3.517 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/10.55, allocations: 6.656 kB / 3.517 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003952/10.56, allocations: 2.319 MB / 3.519 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/10.56, allocations: 277.7 kB / 3.519 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003146/10.56, allocations: 4 kB / 3.519 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008899/10.56, allocations: 74.25 kB / 3.519 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/10.56, allocations: 38.91 kB / 3.519 GB, free: 14.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/10.56, allocations: 18.94 kB / 3.519 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0009075/10.56, allocations: 442.8 kB / 3.52 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01049/10.57, allocations: 1.66 MB / 3.521 GB, free: 12.37 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01489/10.58, allocations: 2.11 MB / 3.523 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003874/10.59, allocations: 1.67 MB / 3.525 GB, free: 9.797 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/10.59, allocations: 4.812 kB / 3.525 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001437/10.59, allocations: 0.8014 MB / 3.526 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/10.59, allocations: 314.9 kB / 3.526 GB, free: 9.234 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/10.6, allocations: 1.819 MB / 3.528 GB, free: 7.938 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/10.6, allocations: 1.242 MB / 3.529 GB, free: 6.883 MB / 0.5105 GB Notification: Performance of SimCode: time 1.392e-06/10.6, allocations: 4 kB / 3.529 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of Templates: time 0.4566/11.06, allocations: 50.79 MB / 3.579 GB, free: 103.3 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1)