Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [: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.7616/0.7616, allocations: 141.8 MB / 149.1 MB, free: 12.04 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: 178.9 kB / 181.9 MB, free: 8.773 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.311/1.311, allocations: 221.3 MB / 436 MB, free: 0.9766 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.0009693/0.0009694, allocations: 103.1 kB / 0.507 GB, free: 17.65 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 267.8 kB / 0.5885 GB, free: 2.719 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.076e-05/1.078e-05, allocations: 2.594 kB / 0.6759 GB, free: 136.1 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1728, allocations: 82.79 MB / 0.7568 GB, free: 81.36 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.2915, allocations: 107.7 MB / 0.8619 GB, free: 5.492 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.2918, allocations: 86.03 kB / 0.862 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.002208/0.294, allocations: 0.5578 MB / 0.8626 GB, free: 4.848 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.2941, allocations: 3.938 kB / 0.8626 GB, free: 4.844 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.0002111/0.2943, allocations: 314.4 kB / 0.8629 GB, free: 4.492 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2943, allocations: 12.03 kB / 0.8629 GB, free: 4.48 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.579e-05/0.2943, allocations: 0 / 0.8629 GB, free: 4.48 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.381e-05/0.2944, allocations: 163 kB / 0.863 GB, free: 4.281 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.2945, allocations: 3.906 kB / 0.863 GB, free: 4.277 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.2945, allocations: 4 kB / 0.863 GB, free: 4.273 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.582e-05/0.2946, allocations: 4 kB / 0.8631 GB, free: 4.27 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.624e-05/0.2946, allocations: 37.69 kB / 0.8631 GB, free: 4.227 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.2946, allocations: 0 / 0.8631 GB, free: 4.227 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.2946, allocations: 0 / 0.8631 GB, free: 4.227 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2947, allocations: 0 / 0.8631 GB, free: 4.227 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.2948, allocations: 130.2 kB / 0.8632 GB, free: 4.062 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.2949, allocations: 29.75 kB / 0.8632 GB, free: 4.027 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.281e-05/0.295, allocations: 12.8 kB / 0.8633 GB, free: 4.012 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.2951, allocations: 81.11 kB / 0.8633 GB, free: 3.914 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.2952, allocations: 34.64 kB / 0.8634 GB, free: 3.871 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2952, allocations: 0 / 0.8634 GB, free: 3.871 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5): time 0.002573/0.2977, allocations: 357.4 kB / 0.8637 GB, free: 3.516 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.2978, allocations: 59.31 kB / 0.8638 GB, free: 3.445 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.762e-05/0.2978, allocations: 85 kB / 0.8638 GB, free: 3.355 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.2979, allocations: 29.64 kB / 0.8639 GB, free: 3.32 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.425e-05/0.2979, allocations: 84.08 kB / 0.864 GB, free: 3.234 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 5.251e-05/0.2979, allocations: 15.75 kB / 0.864 GB, free: 3.219 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.142e-05/0.298, allocations: 4 kB / 0.864 GB, free: 3.215 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.2981, allocations: 318.8 kB / 0.8643 GB, free: 2.895 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.614e-05/0.2981, allocations: 4 kB / 0.8643 GB, free: 2.891 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-05/0.2982, allocations: 26.58 kB / 0.8643 GB, free: 2.855 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.996e-05/0.2983, allocations: 15.97 kB / 0.8643 GB, free: 2.84 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.2983, allocations: 0 / 0.8643 GB, free: 2.84 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002037/0.2985, allocations: 69.61 kB / 0.8644 GB, free: 2.766 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.2985, allocations: 4 kB / 0.8644 GB, free: 2.762 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2985, allocations: 4 kB / 0.8644 GB, free: 2.758 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2985, allocations: 3.906 kB / 0.8644 GB, free: 2.754 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004525/0.299, allocations: 52.34 kB / 0.8644 GB, free: 2.703 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.299, allocations: 7.922 kB / 0.8645 GB, free: 2.695 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003457/0.2994, allocations: 39.98 kB / 0.8645 GB, free: 2.656 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.2994, allocations: 0 / 0.8645 GB, free: 2.656 MB / 0.5419 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 (5): * Single equations (assignments): 5 * 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 7.571e-05/0.2995, allocations: 105 kB / 0.8646 GB, free: 2.547 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.765e-05/0.2995, allocations: 4 kB / 0.8646 GB, free: 2.543 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004098/0.2999, allocations: 109 kB / 0.8647 GB, free: 2.434 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2999, allocations: 4 kB / 0.8647 GB, free: 2.43 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2999, allocations: 0 / 0.8647 GB, free: 2.43 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2999, allocations: 0 / 0.8647 GB, free: 2.43 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/0.3004, allocations: 295.2 kB / 0.865 GB, free: 2.098 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3004, allocations: 4.062 kB / 0.865 GB, free: 2.094 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004036/0.3008, allocations: 47.97 kB / 0.865 GB, free: 2.047 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3008, allocations: 0 / 0.865 GB, free: 2.047 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.3008, allocations: 4 kB / 0.865 GB, free: 2.043 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3008, allocations: 0 / 0.865 GB, free: 2.043 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3009, allocations: 4 kB / 0.865 GB, free: 2.039 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002303/0.3011, allocations: 159.4 kB / 0.8652 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.3011, allocations: 81.11 kB / 0.8653 GB, free: 1.77 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.3012, allocations: 0 / 0.8653 GB, free: 1.77 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.3015, allocations: 39.97 kB / 0.8653 GB, free: 1.727 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.302e-05/0.3016, allocations: 4 kB / 0.8653 GB, free: 1.723 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.3016, allocations: 0 / 0.8653 GB, free: 1.723 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.488e-05/0.3016, allocations: 75.28 kB / 0.8654 GB, free: 1.648 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002394/0.3019, allocations: 15.91 kB / 0.8654 GB, free: 1.633 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 (5): * Single equations (assignments): 5 * 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.0001758/0.302, allocations: 123.1 kB / 0.8655 GB, free: 1.504 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001303/0.3022, allocations: 20 kB / 0.8655 GB, free: 1.484 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3022, allocations: 4 kB / 0.8655 GB, free: 1.48 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.3022, allocations: 15.92 kB / 0.8656 GB, free: 1.465 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3024, allocations: 3.938 kB / 0.8656 GB, free: 1.461 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006098/0.303, allocations: 100.1 kB / 0.8657 GB, free: 1.34 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.3033, allocations: 0.688 MB / 0.8663 GB, free: 0.625 MB / 0.5419 GB Notification: Performance of SimCode: time 2.826e-06/0.3033, allocations: 0 / 0.8663 GB, free: 0.625 MB / 0.5419 GB Notification: Performance of Templates: time 0.003182/0.3065, allocations: 1.333 MB / 0.8676 GB, free: 15.29 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)