Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside") [: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/BuildSysPro 3.5.0/package.mo): time 0.669/0.669, allocations: 127.4 MB / 134.6 MB, free: 4.059 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 185.3 kB / 164.4 MB, free: 6.855 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.872/1.872, allocations: 205.1 MB / 399.1 MB, free: 6.125 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 84.45 kB / 476.3 MB, free: 8.883 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.239e-05/1.281e-05, allocations: 4 kB / 0.546 GB, free: 42.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1989, allocations: 76.73 MB / 0.6209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4846/0.6836, allocations: 101.8 MB / 0.7204 GB, free: 10.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.6838, allocations: 75.95 kB / 0.7204 GB, free: 10.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.002751/0.6866, allocations: 0.6492 MB / 0.7211 GB, free: 9.895 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.6866, allocations: 0 / 0.7211 GB, free: 9.895 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003533/0.687, allocations: 338.5 kB / 0.7214 GB, free: 9.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.6871, allocations: 8.031 kB / 0.7214 GB, free: 9.512 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.6871, allocations: 0 / 0.7214 GB, free: 9.512 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.6872, allocations: 178.8 kB / 0.7216 GB, free: 9.297 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.6873, allocations: 0 / 0.7216 GB, free: 9.297 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.6873, allocations: 0 / 0.7216 GB, free: 9.297 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.762e-05/0.6873, allocations: 12 kB / 0.7216 GB, free: 9.285 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.856e-05/0.6874, allocations: 37.7 kB / 0.7216 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.6874, allocations: 0 / 0.7216 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.6875, allocations: 0 / 0.7216 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.6875, allocations: 0 / 0.7216 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004067/0.6879, allocations: 253.4 kB / 0.7218 GB, free: 8.957 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.445e-05/0.6879, allocations: 26.52 kB / 0.7219 GB, free: 8.922 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.614e-05/0.688, allocations: 8.922 kB / 0.7219 GB, free: 8.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000376/0.6884, allocations: 206.2 kB / 0.7221 GB, free: 8.672 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.6884, allocations: 34.56 kB / 0.7221 GB, free: 8.629 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 2.394e-06/0.6884, allocations: 0 / 0.7221 GB, free: 8.629 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002446/0.6887, allocations: 66.22 kB / 0.7222 GB, free: 8.559 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.6887, allocations: 51.41 kB / 0.7222 GB, free: 8.496 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.069e-05/0.6888, allocations: 89 kB / 0.7223 GB, free: 8.402 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.6888, allocations: 25.7 kB / 0.7223 GB, free: 8.371 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.564e-05/0.6888, allocations: 92.12 kB / 0.7224 GB, free: 8.277 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.6889, allocations: 6.094 kB / 0.7224 GB, free: 8.273 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-06/0.6889, allocations: 0 / 0.7224 GB, free: 8.273 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.689, allocations: 310.8 kB / 0.7227 GB, free: 7.961 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.769e-05/0.689, allocations: 12.03 kB / 0.7227 GB, free: 7.949 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.355e-05/0.689, allocations: 7.938 kB / 0.7227 GB, free: 7.941 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.6892, allocations: 19.97 kB / 0.7228 GB, free: 7.922 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6892, allocations: 0 / 0.7228 GB, free: 7.922 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001267/0.6893, allocations: 53.58 kB / 0.7228 GB, free: 7.863 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.6893, allocations: 8 kB / 0.7228 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.6893, allocations: 0 / 0.7228 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.6894, allocations: 0.75 kB / 0.7228 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.991e-05/0.6895, allocations: 16.08 kB / 0.7228 GB, free: 7.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.6895, allocations: 0 / 0.7228 GB, free: 7.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.641e-05/0.6895, allocations: 11.98 kB / 0.7228 GB, free: 7.828 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-06/0.6895, allocations: 0 / 0.7228 GB, free: 7.828 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.705e-05/0.6896, allocations: 101 kB / 0.7229 GB, free: 7.723 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.6897, allocations: 11.91 kB / 0.723 GB, free: 7.711 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.6898, allocations: 61.45 kB / 0.723 GB, free: 7.648 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.6898, allocations: 10.62 kB / 0.723 GB, free: 7.641 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6899, allocations: 0 / 0.723 GB, free: 7.641 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.6899, allocations: 3.938 kB / 0.723 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.69, allocations: 138.1 kB / 0.7232 GB, free: 7.465 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.69, allocations: 0 / 0.7232 GB, free: 7.465 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.6901, allocations: 16.02 kB / 0.7232 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6901, allocations: 0 / 0.7232 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.6901, allocations: 0 / 0.7232 GB, free: 7.449 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.6901, allocations: 4 kB / 0.7232 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6901, allocations: 0 / 0.7232 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001747/0.6903, allocations: 155.4 kB / 0.7233 GB, free: 7.277 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.6904, allocations: 81.09 kB / 0.7234 GB, free: 7.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.6904, allocations: 4.031 kB / 0.7234 GB, free: 7.176 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.6905, allocations: 8 kB / 0.7234 GB, free: 7.168 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.6905, allocations: 7.922 kB / 0.7234 GB, free: 7.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.6905, allocations: 3.906 kB / 0.7234 GB, free: 7.156 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.976e-05/0.6906, allocations: 84.16 kB / 0.7235 GB, free: 7.074 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002155/0.6908, allocations: 15.94 kB / 0.7235 GB, free: 7.059 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001853/0.691, allocations: 107.2 kB / 0.7236 GB, free: 6.941 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.14e-05/0.6911, allocations: 15.98 kB / 0.7236 GB, free: 6.926 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.6911, allocations: 0 / 0.7236 GB, free: 6.926 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.05e-05/0.6911, allocations: 4 kB / 0.7236 GB, free: 6.922 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000172/0.6913, allocations: 8 kB / 0.7237 GB, free: 6.914 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.6915, allocations: 55.86 kB / 0.7237 GB, free: 6.836 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.6918, allocations: 0.688 MB / 0.7244 GB, free: 6.121 MB / 490.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6918, allocations: 4.125 kB / 0.7244 GB, free: 6.117 MB / 490.7 MB Notification: Performance of Templates: time 0.00253/0.6944, allocations: 0.5836 MB / 0.725 GB, free: 5.543 MB / 490.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)