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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8177/0.8177, allocations: 143.4 MB / 159.2 MB, free: 4.875 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 189.7 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 447.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 95.77 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001836/0.001836, allocations: 276.1 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 87.84 kB / 0.6885 GB, free: 3.844 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.372, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.00243/0.3744, allocations: 1.496 MB / 0.7694 GB, free: 26.16 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006633/0.3751, allocations: 470.9 kB / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.3752, allocations: 0 / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.705e-05/0.3752, allocations: 0 / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.3753, allocations: 3.938 kB / 0.7698 GB, free: 25.69 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.3755, allocations: 19.97 kB / 0.7699 GB, free: 25.67 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 5.564e-05/0.3756, allocations: 23.92 kB / 0.7699 GB, free: 25.65 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.704e-05/0.3756, allocations: 4 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.215e-05/0.3757, allocations: 7.938 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.697e-05/0.3757, allocations: 15.98 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.3758, allocations: 3.938 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.003e-05/0.3758, allocations: 23.91 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.3758, allocations: 11.98 kB / 0.7699 GB, free: 25.58 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 1.98e-05/0.3759, allocations: 3.938 kB / 0.7699 GB, free: 25.58 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 8.704e-05/0.376, allocations: 30.64 kB / 0.77 GB, free: 25.55 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.376, allocations: 4 kB / 0.77 GB, free: 25.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.376, allocations: 0 / 0.77 GB, free: 25.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.975e-06/0.376, allocations: 3.938 kB / 0.77 GB, free: 25.54 MB / 458.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.0003221/0.3763, allocations: 343.5 kB / 0.7703 GB, free: 25.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.3763, allocations: 12.03 kB / 0.7703 GB, free: 25.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.3764, allocations: 0.9375 kB / 0.7703 GB, free: 25.15 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.645e-05/0.3764, allocations: 168.2 kB / 0.7705 GB, free: 24.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.3765, allocations: 4.375 kB / 0.7705 GB, free: 24.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.3765, allocations: 384 / 0.7705 GB, free: 24.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.3766, allocations: 53.98 kB / 0.7705 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3766, allocations: 3.938 kB / 0.7705 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.3767, allocations: 0 / 0.7705 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.3767, allocations: 4 kB / 0.7705 GB, free: 24.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.3768, allocations: 35.95 kB / 0.7706 GB, free: 24.84 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002614/0.3771, allocations: 256.9 kB / 0.7708 GB, free: 24.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.3772, allocations: 34.56 kB / 0.7709 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.678e-05/0.3773, allocations: 28.89 kB / 0.7709 GB, free: 24.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.3774, allocations: 81.11 kB / 0.771 GB, free: 24.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.3774, allocations: 38.5 kB / 0.771 GB, free: 24.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.3774, allocations: 0 / 0.771 GB, free: 24.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002982/0.3777, allocations: 77.64 kB / 0.7711 GB, free: 24.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.876e-05/0.3778, allocations: 55.53 kB / 0.7711 GB, free: 24.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.641e-05/0.3778, allocations: 101.8 kB / 0.7712 GB, free: 24.06 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-06/0.3778, allocations: 29.7 kB / 0.7713 GB, free: 24.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.954e-05/0.3779, allocations: 84.14 kB / 0.7713 GB, free: 23.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.012e-05/0.3779, allocations: 3.906 kB / 0.7713 GB, free: 23.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.3779, allocations: 13.72 kB / 0.7714 GB, free: 23.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.3779, allocations: 322.8 kB / 0.7717 GB, free: 23.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.317e-05/0.378, allocations: 15.98 kB / 0.7717 GB, free: 23.58 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-05/0.3781, allocations: 23.92 kB / 0.7717 GB, free: 23.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.3782, allocations: 40.75 kB / 0.7717 GB, free: 23.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3782, allocations: 4 kB / 0.7717 GB, free: 23.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001639/0.3784, allocations: 61.73 kB / 0.7718 GB, free: 23.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.3784, allocations: 8.625 kB / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3784, allocations: 0 / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.3785, allocations: 3.984 kB / 0.7718 GB, free: 23.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.013e-05/0.3785, allocations: 11.92 kB / 0.7718 GB, free: 23.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.3786, allocations: 0 / 0.7718 GB, free: 23.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.257e-05/0.3786, allocations: 7.984 kB / 0.7718 GB, free: 23.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.3786, allocations: 4 kB / 0.7718 GB, free: 23.41 MB / 458.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.3787, allocations: 117.7 kB / 0.7719 GB, free: 23.28 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.3787, allocations: 7.938 kB / 0.772 GB, free: 23.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.3789, allocations: 72.78 kB / 0.772 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3789, allocations: 0 / 0.772 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3789, allocations: 0 / 0.772 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3789, allocations: 3.984 kB / 0.772 GB, free: 23.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.379, allocations: 161.6 kB / 0.7722 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.379, allocations: 0 / 0.7722 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.375e-05/0.3791, allocations: 12.02 kB / 0.7722 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3791, allocations: 0 / 0.7722 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.3791, allocations: 0 / 0.7722 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3791, allocations: 4 kB / 0.7722 GB, free: 22.97 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3791, allocations: 0 / 0.7722 GB, free: 22.97 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003833/0.3795, allocations: 0.724 MB / 0.7729 GB, free: 22.19 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.793e-05/0.3795, allocations: 89.27 kB / 0.773 GB, free: 22.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.3796, allocations: 0 / 0.773 GB, free: 22.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.197e-05/0.3796, allocations: 11.98 kB / 0.773 GB, free: 22.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.3797, allocations: 7.875 kB / 0.773 GB, free: 22.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.3797, allocations: 0 / 0.773 GB, free: 22.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.09e-05/0.3797, allocations: 83.27 kB / 0.7731 GB, free: 21.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3797, allocations: 0 / 0.7731 GB, free: 21.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003095/0.38, allocations: 16 kB / 0.7731 GB, free: 21.97 MB / 458.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001208/0.3802, allocations: 103.7 kB / 0.7732 GB, free: 21.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001918/0.3804, allocations: 35.95 kB / 0.7732 GB, free: 21.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3804, allocations: 0 / 0.7732 GB, free: 21.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 7.726e-05/0.3805, allocations: 15.98 kB / 0.7733 GB, free: 21.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3807, allocations: 18.64 kB / 0.7733 GB, free: 21.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002614/0.381, allocations: 214.2 kB / 0.7735 GB, free: 21.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.229e-05/0.3811, allocations: 0.6809 MB / 0.7741 GB, free: 20.83 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.938e-05/0.3812, allocations: 0 / 0.7741 GB, free: 20.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.605e-05/0.3812, allocations: 7.438 kB / 0.7741 GB, free: 20.82 MB / 458.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3812, allocations: 0 / 0.7741 GB, free: 20.82 MB / 458.7 MB Notification: Performance of Templates: time 0.002132/0.3833, allocations: 0.4971 MB / 0.7746 GB, free: 20.33 MB / 458.7 MB 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)