Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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) 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(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") [: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.003201/0.003201, allocations: 175.5 kB / 7.451 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.32/1.32, allocations: 170.6 MB / 178.4 MB, free: 15.37 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.001656/0.001656, allocations: 119.8 kB / 217.7 MB, free: 8.129 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.094e-06/7.134e-06, allocations: 4 kB / 261.7 MB, free: 26.62 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 38.76 MB / 300.5 MB, free: 3.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.153, allocations: 310.4 MB / 0.5965 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/1.154, allocations: 80.5 kB / 0.5966 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5659/1.72, allocations: 129.9 MB / 0.7235 GB, free: 65.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001449/1.72, allocations: 18.5 kB / 0.7235 GB, free: 65.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.00315/1.723, allocations: 1.081 MB / 0.7245 GB, free: 64.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/1.723, allocations: 7.938 kB / 0.7245 GB, free: 64.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/1.723, allocations: 104.8 kB / 0.7246 GB, free: 64.92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/1.725, allocations: 0.6539 MB / 0.7253 GB, free: 64.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/1.725, allocations: 89.75 kB / 0.7254 GB, free: 64.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/1.725, allocations: 30.28 kB / 0.7254 GB, free: 64.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001297/1.726, allocations: 0.7749 MB / 0.7262 GB, free: 64.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/1.728, allocations: 0.8283 MB / 0.727 GB, free: 64.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/1.728, allocations: 0 / 0.727 GB, free: 64.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.716e-05/1.728, allocations: 3.688 kB / 0.727 GB, free: 64.51 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.656e-05/1.728, allocations: 54.89 kB / 0.727 GB, free: 64.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/1.734, allocations: 3.183 MB / 0.7301 GB, free: 63.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007529/1.735, allocations: 0.5092 MB / 0.7306 GB, free: 63.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005492/1.735, allocations: 360.2 kB / 0.731 GB, free: 63.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003499/1.739, allocations: 2.035 MB / 0.733 GB, free: 62.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/1.739, allocations: 41.91 kB / 0.733 GB, free: 62.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 3.847e-06/1.739, allocations: 0 / 0.733 GB, free: 62.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.00929/1.748, allocations: 2.576 MB / 0.7355 GB, free: 61.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/1.748, allocations: 85.48 kB / 0.7356 GB, free: 61.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009875/1.749, allocations: 450 kB / 0.736 GB, free: 61.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.632e-05/1.749, allocations: 29.36 kB / 0.7361 GB, free: 61.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/1.749, allocations: 274.7 kB / 0.7363 GB, free: 61.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/1.75, allocations: 219.5 kB / 0.7365 GB, free: 61.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/1.75, allocations: 2.812 kB / 0.7365 GB, free: 61.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002035/1.75, allocations: 374.5 kB / 0.7369 GB, free: 60.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/1.751, allocations: 345.4 kB / 0.7372 GB, free: 60.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006919/1.751, allocations: 499.7 kB / 0.7377 GB, free: 60.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004996/1.756, allocations: 1.062 MB / 0.7387 GB, free: 60.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/1.756, allocations: 3.969 kB / 0.7387 GB, free: 60.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.006704/1.763, allocations: 1.761 MB / 0.7405 GB, free: 60.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001027/1.764, allocations: 1.569 MB / 0.742 GB, free: 59.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/1.764, allocations: 3.469 kB / 0.742 GB, free: 59.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/1.765, allocations: 365.3 kB / 0.7423 GB, free: 59.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00082/1.766, allocations: 159.3 kB / 0.7425 GB, free: 59.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00284/1.769, allocations: 1.278 MB / 0.7437 GB, free: 58.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/1.77, allocations: 30.34 kB / 0.7438 GB, free: 58.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/1.771, allocations: 37.33 kB / 0.7438 GB, free: 58.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/1.771, allocations: 3.75 kB / 0.7438 GB, free: 58.56 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005645/1.776, allocations: 1.358 MB / 0.7451 GB, free: 58.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/1.776, allocations: 10.83 kB / 0.7451 GB, free: 58.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007946/1.777, allocations: 243.4 kB / 0.7454 GB, free: 58.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007869/1.778, allocations: 166.8 kB / 0.7455 GB, free: 58.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/1.779, allocations: 0.8548 MB / 0.7464 GB, free: 58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/1.78, allocations: 29.14 kB / 0.7464 GB, free: 58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/1.78, allocations: 30.55 kB / 0.7464 GB, free: 58 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005141/1.781, allocations: 130.1 kB / 0.7465 GB, free: 57.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/1.781, allocations: 70.12 kB / 0.7466 GB, free: 57.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/1.786, allocations: 1.251 MB / 0.7478 GB, free: 57.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/1.786, allocations: 11.62 kB / 0.7478 GB, free: 57.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/1.786, allocations: 0 / 0.7478 GB, free: 57.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/1.786, allocations: 3.703 kB / 0.7479 GB, free: 57.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0061/1.792, allocations: 2.077 MB / 0.7499 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.119e-05/1.792, allocations: 0 / 0.7499 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/1.793, allocations: 120.3 kB / 0.75 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/1.794, allocations: 366.2 kB / 0.7503 GB, free: 57.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-05/1.794, allocations: 7.422 kB / 0.7504 GB, free: 57.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002791/1.797, allocations: 1.267 MB / 0.7516 GB, free: 56.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/1.797, allocations: 0 / 0.7516 GB, free: 56.96 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004319/1.801, allocations: 1.754 MB / 0.7533 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008092/1.802, allocations: 231.5 kB / 0.7535 GB, free: 56.63 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/1.802, allocations: 0 / 0.7535 GB, free: 56.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009852/1.803, allocations: 44.78 kB / 0.7536 GB, free: 56.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/1.803, allocations: 54.7 kB / 0.7536 GB, free: 56.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/1.803, allocations: 30.5 kB / 0.7536 GB, free: 56.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0007677/1.804, allocations: 340.2 kB / 0.754 GB, free: 56.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003258/1.808, allocations: 0.5913 MB / 0.7545 GB, free: 56.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002775/1.81, allocations: 0.5833 MB / 0.7551 GB, free: 56.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003601/1.814, allocations: 1.329 MB / 0.7564 GB, free: 56.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.814, allocations: 1.594 kB / 0.7564 GB, free: 56.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/1.815, allocations: 458.9 kB / 0.7569 GB, free: 56.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/1.818, allocations: 309.1 kB / 0.7572 GB, free: 56.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/1.822, allocations: 1.345 MB / 0.7585 GB, free: 55.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.823, allocations: 1.098 MB / 0.7595 GB, free: 55.23 MB / 346.7 MB Notification: Performance of SimCode: time 7.11e-07/1.823, allocations: 3.828 kB / 0.7595 GB, free: 55.23 MB / 346.7 MB Notification: Performance of Templates: time 0.05142/1.875, allocations: 23.52 MB / 0.7825 GB, free: 54.15 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)