Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.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.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") [: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.006757/0.006757, allocations: 178.7 kB / 7.454 MB, free: 2.512 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.573/1.573, allocations: 170.6 MB / 178.4 MB, free: 15.41 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.001955/0.001955, allocations: 103.9 kB / 217.7 MB, free: 8.168 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.2358/0.2358, allocations: 37.97 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.287e-06/9.308e-06, allocations: 1.25 kB / 349.5 MB, free: 37.13 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1505, allocations: 48.7 MB / 398.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.166, allocations: 339.2 MB / 0.7201 GB, free: 52.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/1.166, allocations: 83.78 kB / 0.7202 GB, free: 52.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.4/2.566, allocations: 302.1 MB / 1.015 GB, free: 60.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003828/2.566, allocations: 55.09 kB / 1.015 GB, free: 60.36 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.01158/2.578, allocations: 2.09 MB / 1.017 GB, free: 59.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.207e-05/2.578, allocations: 7.781 kB / 1.017 GB, free: 59.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002355/2.58, allocations: 203.7 kB / 1.018 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006193/2.587, allocations: 1.272 MB / 1.019 GB, free: 58.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/2.587, allocations: 142.6 kB / 1.019 GB, free: 58.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/2.588, allocations: 66.66 kB / 1.019 GB, free: 58.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005283/2.593, allocations: 1.792 MB / 1.021 GB, free: 58.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004006/2.597, allocations: 1.792 MB / 1.023 GB, free: 58.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.647e-05/2.597, allocations: 7.906 kB / 1.023 GB, free: 58.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/2.598, allocations: 0 / 1.023 GB, free: 58.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/2.598, allocations: 126 kB / 1.023 GB, free: 58.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/2.614, allocations: 6.812 MB / 1.029 GB, free: 56.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/2.616, allocations: 1.027 MB / 1.03 GB, free: 55.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/2.618, allocations: 0.7759 MB / 1.031 GB, free: 55.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/2.628, allocations: 4.396 MB / 1.035 GB, free: 52.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.624e-05/2.628, allocations: 57.73 kB / 1.035 GB, free: 52.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 7.684e-06/2.628, allocations: 3.312 kB / 1.035 GB, free: 52.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.02307/2.651, allocations: 5.213 MB / 1.04 GB, free: 50.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001638/2.652, allocations: 224.9 kB / 1.041 GB, free: 50.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/2.655, allocations: 0.9062 MB / 1.042 GB, free: 49.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000353/2.656, allocations: 26.83 kB / 1.042 GB, free: 49.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000771/2.656, allocations: 490.1 kB / 1.042 GB, free: 49.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008366/2.657, allocations: 442.4 kB / 1.043 GB, free: 49.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/2.658, allocations: 0 / 1.043 GB, free: 49.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/2.658, allocations: 371.1 kB / 1.043 GB, free: 48.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/2.66, allocations: 0.7401 MB / 1.044 GB, free: 48.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/2.662, allocations: 1.057 MB / 1.045 GB, free: 47.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01452/2.676, allocations: 2.707 MB / 1.047 GB, free: 47.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.544e-05/2.677, allocations: 3.031 kB / 1.047 GB, free: 47.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.02025/2.697, allocations: 4.165 MB / 1.051 GB, free: 45.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001443/2.698, allocations: 2.979 MB / 1.054 GB, free: 42.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.099e-05/2.699, allocations: 8 kB / 1.054 GB, free: 42.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006461/2.705, allocations: 1.177 MB / 1.055 GB, free: 41.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/2.707, allocations: 331.2 kB / 1.056 GB, free: 40.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006745/2.714, allocations: 2.204 MB / 1.058 GB, free: 39.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/2.717, allocations: 74 kB / 1.058 GB, free: 38.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007643/2.718, allocations: 75.58 kB / 1.058 GB, free: 38.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/2.718, allocations: 4 kB / 1.058 GB, free: 38.91 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01761/2.735, allocations: 3.426 MB / 1.061 GB, free: 36.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.273e-05/2.735, allocations: 8 kB / 1.061 GB, free: 36.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006076/2.742, allocations: 0.9271 MB / 1.062 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/2.744, allocations: 344 kB / 1.063 GB, free: 35.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002581/2.746, allocations: 1.396 MB / 1.064 GB, free: 34.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002514/2.749, allocations: 74.5 kB / 1.064 GB, free: 34.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006117/2.749, allocations: 78.03 kB / 1.064 GB, free: 34.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.001178/2.751, allocations: 143.6 kB / 1.064 GB, free: 33.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009513/2.752, allocations: 150.2 kB / 1.064 GB, free: 33.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009761/2.761, allocations: 2.836 MB / 1.067 GB, free: 31.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/2.761, allocations: 19.98 kB / 1.067 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/2.762, allocations: 0.9062 kB / 1.067 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.681e-05/2.762, allocations: 7.969 kB / 1.067 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/2.774, allocations: 4.166 MB / 1.071 GB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/2.774, allocations: 0 / 1.071 GB, free: 26.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/2.775, allocations: 223.8 kB / 1.071 GB, free: 26.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003353/2.778, allocations: 0.9461 MB / 1.072 GB, free: 25.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/2.779, allocations: 23.97 kB / 1.072 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004716/2.783, allocations: 2.185 MB / 1.075 GB, free: 23.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/2.783, allocations: 4 kB / 1.075 GB, free: 23.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008621/2.792, allocations: 3.589 MB / 1.078 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/2.794, allocations: 427 kB / 1.078 GB, free: 19.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007882/2.795, allocations: 8 kB / 1.078 GB, free: 19.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002036/2.797, allocations: 83.77 kB / 1.079 GB, free: 19.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/2.797, allocations: 113 kB / 1.079 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/2.797, allocations: 59.97 kB / 1.079 GB, free: 19.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001556/2.799, allocations: 0.6673 MB / 1.079 GB, free: 18.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007713/2.807, allocations: 1.335 MB / 1.081 GB, free: 17.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.006251/2.813, allocations: 1.214 MB / 1.082 GB, free: 16.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007896/2.821, allocations: 3.004 MB / 1.085 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/2.821, allocations: 4 kB / 1.085 GB, free: 13.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/2.823, allocations: 0.9857 MB / 1.086 GB, free: 12.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004057/2.827, allocations: 0.5824 MB / 1.086 GB, free: 11.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008583/2.836, allocations: 2.835 MB / 1.089 GB, free: 8.672 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002215/2.838, allocations: 1.59 MB / 1.091 GB, free: 7.051 MB / 426.7 MB Notification: Performance of SimCode: time 8.32e-07/2.838, allocations: 4 kB / 1.091 GB, free: 7.047 MB / 426.7 MB Notification: Performance of Templates: time 0.4104/3.248, allocations: 51.5 MB / 1.141 GB, free: 109.6 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1)