Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.776/0.776, allocations: 141.8 MB / 149.1 MB, free: 2.703 MB / 115 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 176.1 kB / 182 MB, free: 3.664 MB / 147 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.3 MB / 436 MB, free: 3.785 MB / 339 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 84.39 kB / 0.507 GB, free: 1.805 MB / 387 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 281.5 kB / 0.5885 GB, free: 14.37 MB / 483 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.456e-06, allocations: 4 kB / 0.6759 GB, free: 138.4 MB / 499 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1656, allocations: 82.77 MB / 0.7567 GB, free: 56.02 MB / 499 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.183/1.349, allocations: 355.9 MB / 1.104 GB, free: 214.5 MB / 0.6904 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/1.349, allocations: 95.31 kB / 1.104 GB, free: 214.5 MB / 0.6904 GB Notification: Performance of FrontEnd: time 0.3495/1.699, allocations: 177.8 MB / 1.278 GB, free: 62.54 MB / 0.6904 GB Notification: Performance of Transformations before backend: time 9.769e-05/1.699, allocations: 23.92 kB / 1.278 GB, free: 62.52 MB / 0.6904 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001879/1.701, allocations: 0.7318 MB / 1.279 GB, free: 61.73 MB / 0.6904 GB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/1.701, allocations: 8.031 kB / 1.279 GB, free: 61.73 MB / 0.6904 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002781/1.701, allocations: 59.34 kB / 1.279 GB, free: 61.67 MB / 0.6904 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/1.702, allocations: 437.4 kB / 1.279 GB, free: 61.2 MB / 0.6904 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/1.702, allocations: 4 kB / 1.279 GB, free: 61.2 MB / 0.6904 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/1.702, allocations: 20 kB / 1.279 GB, free: 61.18 MB / 0.6904 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003187/1.703, allocations: 124.8 kB / 1.279 GB, free: 61.05 MB / 0.6904 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/1.703, allocations: 158.4 kB / 1.28 GB, free: 60.89 MB / 0.6904 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/1.703, allocations: 0 / 1.28 GB, free: 60.89 MB / 0.6904 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/1.703, allocations: 0 / 1.28 GB, free: 60.89 MB / 0.6904 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/1.703, allocations: 8 kB / 1.28 GB, free: 60.89 MB / 0.6904 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/1.705, allocations: 0.8911 MB / 1.28 GB, free: 59.94 MB / 0.6904 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/1.705, allocations: 118.4 kB / 1.281 GB, free: 59.81 MB / 0.6904 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.267e-05/1.705, allocations: 56.84 kB / 1.281 GB, free: 59.75 MB / 0.6904 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003072/1.706, allocations: 340.4 kB / 1.281 GB, free: 59.35 MB / 0.6904 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/1.706, allocations: 30.56 kB / 1.281 GB, free: 59.31 MB / 0.6904 GB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/1.706, allocations: 3.938 kB / 1.281 GB, free: 59.3 MB / 0.6904 GB Notification: Performance of matching and sorting (n=14): time 0.0005511/1.706, allocations: 165.4 kB / 1.281 GB, free: 59.14 MB / 0.6904 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/1.706, allocations: 55.41 kB / 1.281 GB, free: 59.07 MB / 0.6904 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/1.707, allocations: 365 kB / 1.282 GB, free: 58.7 MB / 0.6904 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/1.707, allocations: 25.7 kB / 1.282 GB, free: 58.67 MB / 0.6904 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/1.707, allocations: 172.4 kB / 1.282 GB, free: 58.5 MB / 0.6904 GB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/1.707, allocations: 43.36 kB / 1.282 GB, free: 58.46 MB / 0.6904 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/1.707, allocations: 0 / 1.282 GB, free: 58.46 MB / 0.6904 GB Notification: Performance of setup shared object (initialization): time 0.0001043/1.707, allocations: 358.7 kB / 1.282 GB, free: 58.1 MB / 0.6904 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.101e-05/1.707, allocations: 44 kB / 1.282 GB, free: 58.05 MB / 0.6904 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/1.707, allocations: 157.6 kB / 1.282 GB, free: 57.86 MB / 0.6904 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/1.707, allocations: 79.89 kB / 1.282 GB, free: 57.79 MB / 0.6904 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.707, allocations: 0 / 1.282 GB, free: 57.79 MB / 0.6904 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004259/1.708, allocations: 215.7 kB / 1.283 GB, free: 57.57 MB / 0.6904 GB Notification: Performance of prepare postOptimizeDAE: time 9.748e-05/1.708, allocations: 275 kB / 1.283 GB, free: 57.28 MB / 0.6904 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/1.708, allocations: 4 kB / 1.283 GB, free: 57.28 MB / 0.6904 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/1.708, allocations: 11.84 kB / 1.283 GB, free: 57.27 MB / 0.6904 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/1.708, allocations: 47.91 kB / 1.283 GB, free: 57.22 MB / 0.6904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/1.708, allocations: 4 kB / 1.283 GB, free: 57.21 MB / 0.6904 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/1.709, allocations: 43.8 kB / 1.283 GB, free: 57.17 MB / 0.6904 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/1.709, allocations: 12 kB / 1.283 GB, free: 57.16 MB / 0.6904 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/1.709, allocations: 4 kB / 1.283 GB, free: 57.16 MB / 0.6904 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003269/1.709, allocations: 143.8 kB / 1.283 GB, free: 57.02 MB / 0.6904 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/1.709, allocations: 0 / 1.283 GB, free: 57.02 MB / 0.6904 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/1.709, allocations: 0 / 1.283 GB, free: 57.02 MB / 0.6904 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/1.709, allocations: 51.97 kB / 1.283 GB, free: 56.96 MB / 0.6904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.055e-06/1.709, allocations: 0 / 1.283 GB, free: 56.96 MB / 0.6904 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/1.71, allocations: 35.81 kB / 1.283 GB, free: 56.93 MB / 0.6904 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/1.71, allocations: 19.98 kB / 1.283 GB, free: 56.91 MB / 0.6904 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.916e-05/1.71, allocations: 108.9 kB / 1.283 GB, free: 56.8 MB / 0.6904 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/1.71, allocations: 43.44 kB / 1.283 GB, free: 56.75 MB / 0.6904 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004991/1.711, allocations: 219.8 kB / 1.284 GB, free: 56.54 MB / 0.6904 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.711, allocations: 8 kB / 1.284 GB, free: 56.53 MB / 0.6904 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/1.711, allocations: 0 / 1.284 GB, free: 56.53 MB / 0.6904 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/1.711, allocations: 3.984 kB / 1.284 GB, free: 56.52 MB / 0.6904 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/1.711, allocations: 0.627 MB / 1.284 GB, free: 55.84 MB / 0.6904 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/1.711, allocations: 0 / 1.284 GB, free: 55.84 MB / 0.6904 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/1.712, allocations: 44.03 kB / 1.284 GB, free: 55.8 MB / 0.6904 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.712, allocations: 0 / 1.284 GB, free: 55.8 MB / 0.6904 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/1.712, allocations: 4 kB / 1.284 GB, free: 55.79 MB / 0.6904 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.712, allocations: 0 / 1.284 GB, free: 55.79 MB / 0.6904 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.712, allocations: 7.906 kB / 1.284 GB, free: 55.79 MB / 0.6904 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003958/1.712, allocations: 361 kB / 1.285 GB, free: 55.38 MB / 0.6904 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/1.712, allocations: 144.5 kB / 1.285 GB, free: 55.22 MB / 0.6904 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/1.712, allocations: 7.938 kB / 1.285 GB, free: 55.21 MB / 0.6904 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/1.713, allocations: 31.88 kB / 1.285 GB, free: 55.18 MB / 0.6904 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/1.713, allocations: 7.984 kB / 1.285 GB, free: 55.17 MB / 0.6904 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/1.713, allocations: 8 kB / 1.285 GB, free: 55.16 MB / 0.6904 GB Notification: Performance of sort global known variables: time 0.0002564/1.713, allocations: 275.2 kB / 1.285 GB, free: 54.9 MB / 0.6904 GB Notification: Performance of remove unused functions: time 0.0009052/1.714, allocations: 227.6 kB / 1.285 GB, free: 54.68 MB / 0.6904 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001346/1.715, allocations: 0.4928 MB / 1.286 GB, free: 54.26 MB / 0.6904 GB Notification: Performance of simCode: created initialization part: time 0.0004647/1.716, allocations: 234.2 kB / 1.286 GB, free: 54.03 MB / 0.6904 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.716, allocations: 0 / 1.286 GB, free: 54.03 MB / 0.6904 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/1.716, allocations: 67.92 kB / 1.286 GB, free: 53.96 MB / 0.6904 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/1.717, allocations: 183.7 kB / 1.286 GB, free: 53.78 MB / 0.6904 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/1.718, allocations: 0.4928 MB / 1.287 GB, free: 53.26 MB / 0.6904 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/1.718, allocations: 0.8776 MB / 1.288 GB, free: 52.35 MB / 0.6904 GB Notification: Performance of SimCode: time 8.02e-07/1.718, allocations: 0 / 1.288 GB, free: 52.35 MB / 0.6904 GB Notification: Performance of Templates: time 0.01541/1.734, allocations: 9.204 MB / 1.296 GB, free: 43.25 MB / 0.6904 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)