Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7425/0.7425, allocations: 141.8 MB / 149.1 MB, free: 11.82 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.001016/0.001016, allocations: 182.8 kB / 182 MB, free: 8.598 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.441/1.441, allocations: 221.4 MB / 436.1 MB, free: 0.8281 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.001012/0.001012, allocations: 98.17 kB / 0.507 GB, free: 9.816 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001964/0.001964, allocations: 276.2 kB / 0.5885 GB, free: 6.621 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 9.397e-06/9.427e-06, allocations: 0.9375 kB / 0.6759 GB, free: 167.7 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.181, allocations: 82.79 MB / 0.7568 GB, free: 116.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.2995, allocations: 108.2 MB / 0.8625 GB, free: 8.508 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.2997, allocations: 79.94 kB / 0.8625 GB, free: 8.43 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.002772/0.3025, allocations: 0.8058 MB / 0.8633 GB, free: 7.625 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.3025, allocations: 4 kB / 0.8633 GB, free: 7.621 MB / 0.5419 GB 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.0002937/0.3028, allocations: 338.4 kB / 0.8637 GB, free: 7.246 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3029, allocations: 13.03 kB / 0.8637 GB, free: 7.234 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.3029, allocations: 7.906 kB / 0.8637 GB, free: 7.227 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.407e-05/0.303, allocations: 163.1 kB / 0.8638 GB, free: 7.027 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.303, allocations: 4 kB / 0.8638 GB, free: 7.023 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.3031, allocations: 0 / 0.8638 GB, free: 7.023 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.999e-05/0.3031, allocations: 12 kB / 0.8638 GB, free: 7.012 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.574e-05/0.3032, allocations: 49.52 kB / 0.8639 GB, free: 6.957 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3032, allocations: 0 / 0.8639 GB, free: 6.957 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3032, allocations: 0 / 0.8639 GB, free: 6.957 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.3032, allocations: 0 / 0.8639 GB, free: 6.957 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.3036, allocations: 245.5 kB / 0.8641 GB, free: 6.68 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.75e-05/0.3037, allocations: 26.48 kB / 0.8641 GB, free: 6.645 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.3037, allocations: 12.92 kB / 0.8642 GB, free: 6.629 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.3038, allocations: 85.12 kB / 0.8642 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/0.3038, allocations: 34.56 kB / 0.8643 GB, free: 6.484 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.3038, allocations: 4 kB / 0.8643 GB, free: 6.48 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0002608/0.3041, allocations: 53.61 kB / 0.8643 GB, free: 6.422 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.3041, allocations: 51.41 kB / 0.8644 GB, free: 6.359 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.666e-05/0.3042, allocations: 93 kB / 0.8645 GB, free: 6.262 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 8.095e-06/0.3042, allocations: 25.7 kB / 0.8645 GB, free: 6.23 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.048e-05/0.3042, allocations: 84.14 kB / 0.8646 GB, free: 6.145 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.3043, allocations: 3.906 kB / 0.8646 GB, free: 6.141 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.3043, allocations: 0 / 0.8646 GB, free: 6.141 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 5.091e-05/0.3043, allocations: 322.9 kB / 0.8649 GB, free: 5.816 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.461e-05/0.3043, allocations: 7.938 kB / 0.8649 GB, free: 5.809 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.289e-05/0.3044, allocations: 8 kB / 0.8649 GB, free: 5.801 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.107e-05/0.3045, allocations: 11.98 kB / 0.8649 GB, free: 5.789 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3045, allocations: 3.906 kB / 0.8649 GB, free: 5.785 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001329/0.3046, allocations: 49.67 kB / 0.865 GB, free: 5.73 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3046, allocations: 10.97 kB / 0.865 GB, free: 5.723 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3046, allocations: 0 / 0.865 GB, free: 5.723 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.3047, allocations: 4.031 kB / 0.865 GB, free: 5.719 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.529e-05/0.3048, allocations: 19.92 kB / 0.865 GB, free: 5.699 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3048, allocations: 0 / 0.865 GB, free: 5.699 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.41e-05/0.3048, allocations: 15.98 kB / 0.865 GB, free: 5.684 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-06/0.3048, allocations: 0 / 0.865 GB, free: 5.684 MB / 0.5419 GB 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 4.625e-05/0.3049, allocations: 108.9 kB / 0.8651 GB, free: 5.57 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.3049, allocations: 4 kB / 0.8651 GB, free: 5.566 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.3051, allocations: 52.98 kB / 0.8652 GB, free: 5.512 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3051, allocations: 0 / 0.8652 GB, free: 5.512 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3051, allocations: 0 / 0.8652 GB, free: 5.512 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3051, allocations: 3.906 kB / 0.8652 GB, free: 5.508 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.54e-05/0.3052, allocations: 146.2 kB / 0.8653 GB, free: 5.328 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3052, allocations: 0 / 0.8653 GB, free: 5.328 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.3053, allocations: 12.03 kB / 0.8653 GB, free: 5.316 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.3053, allocations: 256 / 0.8653 GB, free: 5.316 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.3053, allocations: 0 / 0.8653 GB, free: 5.316 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3053, allocations: 11.92 kB / 0.8653 GB, free: 5.305 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3053, allocations: 0 / 0.8653 GB, free: 5.305 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001312/0.3055, allocations: 147.5 kB / 0.8655 GB, free: 5.145 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 1.736e-05/0.3055, allocations: 85.12 kB / 0.8656 GB, free: 5.043 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.3055, allocations: 7.906 kB / 0.8656 GB, free: 5.035 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/0.3056, allocations: 4 kB / 0.8656 GB, free: 5.031 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.3056, allocations: 7.984 kB / 0.8656 GB, free: 5.023 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3056, allocations: 0 / 0.8656 GB, free: 5.023 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.986e-05/0.3057, allocations: 79.28 kB / 0.8657 GB, free: 4.945 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002108/0.3059, allocations: 8 kB / 0.8657 GB, free: 4.938 MB / 0.5419 GB 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.0001155/0.306, allocations: 106.4 kB / 0.8658 GB, free: 4.824 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 7.041e-05/0.3061, allocations: 15.94 kB / 0.8658 GB, free: 4.809 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3061, allocations: 0 / 0.8658 GB, free: 4.809 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 2.003e-05/0.3061, allocations: 11.98 kB / 0.8658 GB, free: 4.797 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.3063, allocations: 7.938 kB / 0.8658 GB, free: 4.789 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001853/0.3065, allocations: 55.92 kB / 0.8658 GB, free: 4.711 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.3066, allocations: 0.692 MB / 0.8665 GB, free: 3.992 MB / 0.5419 GB Notification: Performance of SimCode: time 2.1e-07/0.3066, allocations: 3.938 kB / 0.8665 GB, free: 3.988 MB / 0.5419 GB Notification: Performance of Templates: time 0.002315/0.309, allocations: 0.5174 MB / 0.867 GB, free: 3.473 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)