Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.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.Delays.Examples.Delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay") translateModel(BuildingSystems.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay") [: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.7514/0.7514, allocations: 141.8 MB / 149.1 MB, free: 14.77 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 192.3 kB / 182 MB, free: 11.2 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.3 MB / 436 MB, free: 3.789 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009947/0.0009947, allocations: 91.62 kB / 0.507 GB, free: 18.54 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001957/0.001957, allocations: 277.8 kB / 0.5885 GB, free: 5.18 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.396e-06, allocations: 1.281 kB / 0.6759 GB, free: 138 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1934, allocations: 82.78 MB / 0.7567 GB, free: 85.78 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.289/4.482, allocations: 1.882 GB / 2.639 GB, free: 116.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/4.483, allocations: 81.45 kB / 2.639 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.765/6.248, allocations: 488.3 MB / 3.116 GB, free: 160.6 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001201/6.248, allocations: 22.73 kB / 3.116 GB, free: 160.6 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00328/6.251, allocations: 0.97 MB / 3.117 GB, free: 160.1 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/6.251, allocations: 7.531 kB / 3.117 GB, free: 160.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/6.253, allocations: 223.7 kB / 3.117 GB, free: 160 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/6.255, allocations: 0.632 MB / 3.118 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/6.255, allocations: 14.5 kB / 3.118 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/6.256, allocations: 33.67 kB / 3.118 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000855/6.256, allocations: 369.3 kB / 3.118 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/6.257, allocations: 402.4 kB / 3.119 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/6.257, allocations: 0 / 3.119 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.231e-05/6.257, allocations: 0 / 3.119 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.244e-05/6.258, allocations: 18.45 kB / 3.119 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003793/6.261, allocations: 2.016 MB / 3.121 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005021/6.262, allocations: 301.6 kB / 3.121 GB, free: 158.7 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/6.262, allocations: 188.6 kB / 3.121 GB, free: 158.7 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003215/6.262, allocations: 189.9 kB / 3.121 GB, free: 158.5 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/6.263, allocations: 42.95 kB / 3.121 GB, free: 158.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=33): time 2.204e-06/6.263, allocations: 0 / 3.121 GB, free: 158.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33): time 0.001235/6.264, allocations: 386 kB / 3.122 GB, free: 158.4 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/6.264, allocations: 61.61 kB / 3.122 GB, free: 158.4 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/6.264, allocations: 372.1 kB / 3.122 GB, free: 158.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/6.264, allocations: 28.45 kB / 3.122 GB, free: 158.2 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/6.265, allocations: 235 kB / 3.122 GB, free: 158.1 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/6.265, allocations: 113.8 kB / 3.122 GB, free: 158 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.668e-05/6.265, allocations: 0 / 3.122 GB, free: 158 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001405/6.265, allocations: 358.1 kB / 3.123 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/6.265, allocations: 112.4 kB / 3.123 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/6.265, allocations: 205.5 kB / 3.123 GB, free: 157.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/6.266, allocations: 149 kB / 3.123 GB, free: 157.6 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/6.266, allocations: 0 / 3.123 GB, free: 157.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006044/6.266, allocations: 379 kB / 3.124 GB, free: 157.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/6.266, allocations: 358.5 kB / 3.124 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/6.266, allocations: 2.5 kB / 3.124 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/6.266, allocations: 3.344 kB / 3.124 GB, free: 157.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/6.267, allocations: 82.02 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/6.267, allocations: 0 / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007018/6.268, allocations: 56.95 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/6.268, allocations: 13.19 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/6.268, allocations: 3.875 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004029/6.268, allocations: 279.2 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/6.268, allocations: 7.969 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/6.268, allocations: 4.344 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/6.268, allocations: 77.45 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/6.268, allocations: 6.781 kB / 3.124 GB, free: 157.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/6.269, allocations: 55.42 kB / 3.124 GB, free: 157 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/6.269, allocations: 13.69 kB / 3.124 GB, free: 157 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 0.0001134/6.269, allocations: 110.9 kB / 3.125 GB, free: 156.9 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/6.269, allocations: 54.59 kB / 3.125 GB, free: 156.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006692/6.27, allocations: 367.2 kB / 3.125 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/6.27, allocations: 3.938 kB / 3.125 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/6.27, allocations: 3.469 kB / 3.125 GB, free: 156.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003929/6.27, allocations: 392.5 kB / 3.125 GB, free: 156.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/6.272, allocations: 1.047 MB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/6.272, allocations: 0 / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/6.273, allocations: 92.52 kB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/6.273, allocations: 7 kB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/6.273, allocations: 9.328 kB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/6.273, allocations: 6.344 kB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/6.273, allocations: 2.188 kB / 3.126 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009529/6.274, allocations: 0.7383 MB / 3.127 GB, free: 155.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/6.274, allocations: 169.4 kB / 3.127 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.02e-05/6.274, allocations: 7.875 kB / 3.127 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/6.274, allocations: 53.81 kB / 3.127 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/6.275, allocations: 15.23 kB / 3.127 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/6.275, allocations: 15.58 kB / 3.127 GB, free: 155.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0003031/6.275, allocations: 301.5 kB / 3.128 GB, free: 155.2 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001202/6.276, allocations: 403.6 kB / 3.128 GB, free: 155.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.U,del.dynBal.m,del.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.002555/6.279, allocations: 1.44 MB / 3.13 GB, free: 154.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001081/6.28, allocations: 483.3 kB / 3.13 GB, free: 154.4 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/6.28, allocations: 0.5938 kB / 3.13 GB, free: 154.4 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002954/6.28, allocations: 165.8 kB / 3.13 GB, free: 154.3 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/6.282, allocations: 328.6 kB / 3.13 GB, free: 154.2 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/6.284, allocations: 0.9633 MB / 3.131 GB, free: 153.7 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/6.285, allocations: 0.9973 MB / 3.132 GB, free: 152.9 MB / 0.6982 GB Notification: Performance of SimCode: time 1.282e-06/6.285, allocations: 0 / 3.132 GB, free: 152.9 MB / 0.6982 GB Notification: Performance of Templates: time 0.03477/6.32, allocations: 19.13 MB / 3.151 GB, free: 135.4 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.sim & ./BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Delays.Examples.Delay.pipe 2>&1)