Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.001381/0.001381, allocations: 182.2 kB / 7.462 MB, free: 476 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.383/1.383, allocations: 194.2 MB / 202.1 MB, free: 13.05 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002219/0.002219, allocations: 119.1 kB / 247.1 MB, free: 60 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1825/0.1825, allocations: 39.95 MB / 331.9 MB, free: 15.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 8.836e-06/8.856e-06, allocations: 4 kB / 392.8 MB, free: 12.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 54.86 MB / 447.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.921/6.034, allocations: 2.654 GB / 3.092 GB, free: 134.4 MB / 478.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/6.034, allocations: 78.64 kB / 3.092 GB, free: 134.4 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.688/7.722, allocations: 460.4 MB / 3.541 GB, free: 28.46 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001331/7.722, allocations: 30.27 kB / 3.541 GB, free: 28.43 MB / 478.1 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.009767/7.732, allocations: 2.152 MB / 3.543 GB, free: 26.24 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/7.732, allocations: 20.39 kB / 3.543 GB, free: 26.22 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003225/7.735, allocations: 386.3 kB / 3.544 GB, free: 25.84 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/7.738, allocations: 0.8823 MB / 3.545 GB, free: 24.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/7.738, allocations: 39.98 kB / 3.545 GB, free: 24.89 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/7.739, allocations: 44 kB / 3.545 GB, free: 24.85 MB / 478.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001884/7.741, allocations: 0.9449 MB / 3.546 GB, free: 23.91 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/7.742, allocations: 1.113 MB / 3.547 GB, free: 22.7 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/7.742, allocations: 7.938 kB / 3.547 GB, free: 22.69 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/7.743, allocations: 4 kB / 3.547 GB, free: 22.69 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.634e-05/7.743, allocations: 61.81 kB / 3.547 GB, free: 22.63 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4823/8.225, allocations: 101.2 MB / 3.646 GB, free: 50.72 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000669/8.226, allocations: 342 kB / 3.646 GB, free: 50.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/8.226, allocations: 283.5 kB / 3.646 GB, free: 50.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03113/8.257, allocations: 16.77 MB / 3.663 GB, free: 39.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/8.257, allocations: 40.75 kB / 3.663 GB, free: 39.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 3.336e-06/8.257, allocations: 0 / 3.663 GB, free: 39.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=46): time 0.007692/8.265, allocations: 2.34 MB / 3.665 GB, free: 39.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/8.265, allocations: 132.5 kB / 3.665 GB, free: 39.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009712/8.266, allocations: 0.5791 MB / 3.666 GB, free: 39.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/8.266, allocations: 31.08 kB / 3.666 GB, free: 39.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002834/8.267, allocations: 394.6 kB / 3.666 GB, free: 38.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/8.267, allocations: 163.2 kB / 3.666 GB, free: 38.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/8.267, allocations: 0 / 3.666 GB, free: 38.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/8.267, allocations: 375.5 kB / 3.666 GB, free: 38.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005395/8.268, allocations: 366.6 kB / 3.667 GB, free: 38.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006741/8.268, allocations: 0.5643 MB / 3.667 GB, free: 38.17 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004074/8.272, allocations: 1.035 MB / 3.668 GB, free: 38.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/8.272, allocations: 0 / 3.668 GB, free: 38.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.006571/8.279, allocations: 2.245 MB / 3.671 GB, free: 38.04 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005783/8.279, allocations: 2.257 MB / 3.673 GB, free: 35.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/8.279, allocations: 10.78 kB / 3.673 GB, free: 35.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001731/8.281, allocations: 496.5 kB / 3.673 GB, free: 35.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/8.282, allocations: 172.3 kB / 3.673 GB, free: 35.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/8.284, allocations: 1.545 MB / 3.675 GB, free: 35.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/8.285, allocations: 128.6 kB / 3.675 GB, free: 35.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.649e-05/8.285, allocations: 43.95 kB / 3.675 GB, free: 35.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.357e-06/8.285, allocations: 6.844 kB / 3.675 GB, free: 35.09 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005189/8.29, allocations: 1.621 MB / 3.677 GB, free: 35.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/8.29, allocations: 6.938 kB / 3.677 GB, free: 35.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/8.292, allocations: 405.9 kB / 3.677 GB, free: 35.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/8.293, allocations: 179.8 kB / 3.677 GB, free: 35.03 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/8.294, allocations: 1.167 MB / 3.678 GB, free: 34.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009695/8.295, allocations: 103.1 kB / 3.679 GB, free: 34.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.65e-05/8.295, allocations: 39.5 kB / 3.679 GB, free: 34.49 MB / 494.1 MB 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.0002523/8.295, allocations: 125.2 kB / 3.679 GB, free: 34.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009119/8.296, allocations: 327.5 kB / 3.679 GB, free: 34.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002857/8.299, allocations: 1.858 MB / 3.681 GB, free: 34.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/8.299, allocations: 19.89 kB / 3.681 GB, free: 34.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/8.299, allocations: 0 / 3.681 GB, free: 34.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001959/8.301, allocations: 1.769 MB / 3.683 GB, free: 33.78 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003891/8.305, allocations: 2.805 MB / 3.685 GB, free: 33.44 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/8.305, allocations: 3.766 kB / 3.685 GB, free: 33.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/8.305, allocations: 115.6 kB / 3.685 GB, free: 33.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/8.306, allocations: 86.8 kB / 3.685 GB, free: 33.42 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/8.306, allocations: 13.44 kB / 3.685 GB, free: 33.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003725/8.306, allocations: 0.686 MB / 3.686 GB, free: 32.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/8.306, allocations: 4.875 kB / 3.686 GB, free: 32.89 MB / 494.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003359/8.31, allocations: 2.318 MB / 3.688 GB, free: 32.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/8.31, allocations: 273.8 kB / 3.689 GB, free: 32.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/8.31, allocations: 13.94 kB / 3.689 GB, free: 32.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006178/8.311, allocations: 68.48 kB / 3.689 GB, free: 32.42 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/8.311, allocations: 40.33 kB / 3.689 GB, free: 32.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/8.311, allocations: 22.56 kB / 3.689 GB, free: 32.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 0.0005069/8.311, allocations: 442.8 kB / 3.689 GB, free: 32.32 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007716/8.319, allocations: 1.672 MB / 3.691 GB, free: 32.32 MB / 494.1 MB 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.009811/8.329, allocations: 2.127 MB / 3.693 GB, free: 32.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00323/8.332, allocations: 1.674 MB / 3.695 GB, free: 32.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/8.332, allocations: 0 / 3.695 GB, free: 32.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/8.334, allocations: 0.8014 MB / 3.695 GB, free: 32.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/8.336, allocations: 300.3 kB / 3.696 GB, free: 32.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/8.339, allocations: 1.822 MB / 3.697 GB, free: 31.58 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008193/8.34, allocations: 1.238 MB / 3.699 GB, free: 30.85 MB / 494.1 MB Notification: Performance of SimCode: time 1.192e-06/8.34, allocations: 3.344 kB / 3.699 GB, free: 30.85 MB / 494.1 MB Notification: Performance of Templates: time 0.07089/8.411, allocations: 51.05 MB / 3.749 GB, free: 23.92 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1)