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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 107.5 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002107/0.002107, allocations: 300 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9213/0.9213, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 96.22 kB / 0.6821 GB, free: 6.902 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4551/0.4571, allocations: 86.98 MB / 0.7671 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001637/0.4587, allocations: 0.5941 MB / 0.7677 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.46, allocations: 1.1 MB / 0.7687 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.364e-05/0.46, allocations: 0 / 0.7687 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.46, allocations: 3.938 kB / 0.7687 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.4603, allocations: 27.92 kB / 0.7688 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 4.067e-06/0.4603, allocations: 0 / 0.7688 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.586e-05/0.4603, allocations: 0 / 0.7688 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.568e-05/0.4604, allocations: 4 kB / 0.7688 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.4604, allocations: 3.938 kB / 0.7688 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.445e-05/0.4604, allocations: 7.969 kB / 0.7688 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.324e-06/0.4604, allocations: 0 / 0.7688 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.4606, allocations: 19.92 kB / 0.7688 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.4606, allocations: 4 kB / 0.7688 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.753e-05/0.4606, allocations: 4 kB / 0.7688 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 7.599e-05/0.4607, allocations: 19.91 kB / 0.7688 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4607, allocations: 0 / 0.7688 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.572e-06/0.4607, allocations: 3.938 kB / 0.7688 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.4607, allocations: 0 / 0.7688 GB, free: 2.242 MB / 0.5294 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.0002967/0.461, allocations: 323.6 kB / 0.7691 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.461, allocations: 8.031 kB / 0.7692 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.967e-05/0.4611, allocations: 0.9375 kB / 0.7692 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.859e-05/0.4612, allocations: 164.2 kB / 0.7693 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.4612, allocations: 4.312 kB / 0.7693 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.4612, allocations: 4.375 kB / 0.7693 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.4613, allocations: 46 kB / 0.7694 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4614, allocations: 0 / 0.7694 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.4614, allocations: 0 / 0.7694 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.4614, allocations: 0 / 0.7694 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.291e-05/0.4614, allocations: 4 kB / 0.7694 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/0.4616, allocations: 157.6 kB / 0.7695 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.4617, allocations: 38.55 kB / 0.7696 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.815e-05/0.4618, allocations: 12.86 kB / 0.7696 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.4619, allocations: 81.09 kB / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.462, allocations: 42.5 kB / 0.7697 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.462, allocations: 0 / 0.7697 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.004167/0.4661, allocations: 0.5638 MB / 0.7702 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.4662, allocations: 51.41 kB / 0.7703 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.811e-05/0.4662, allocations: 97.84 kB / 0.7704 GB, free: 472 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.4663, allocations: 25.7 kB / 0.7704 GB, free: 440 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.4663, allocations: 80.14 kB / 0.7705 GB, free: 356 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.4664, allocations: 18.34 kB / 0.7705 GB, free: 340 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.001e-05/0.4664, allocations: 17.72 kB / 0.7705 GB, free: 316 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.4665, allocations: 314.8 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/0.4671, allocations: 83.95 kB / 0.7709 GB, free: 15.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005936/0.4677, allocations: 108.3 kB / 0.771 GB, free: 15.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.4689, allocations: 194.4 kB / 0.7712 GB, free: 15.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4689, allocations: 0 / 0.7712 GB, free: 15.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001196/0.4701, allocations: 217.5 kB / 0.7714 GB, free: 15.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.4701, allocations: 6.812 kB / 0.7714 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.4701, allocations: 0 / 0.7714 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4702, allocations: 4 kB / 0.7714 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.4706, allocations: 48 kB / 0.7714 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.4706, allocations: 7.938 kB / 0.7715 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.4709, allocations: 35.98 kB / 0.7715 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.4709, allocations: 11.98 kB / 0.7715 GB, free: 15.27 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.203e-05/0.471, allocations: 108.2 kB / 0.7716 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.4711, allocations: 11.84 kB / 0.7716 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.4724, allocations: 233.1 kB / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.4724, allocations: 3.938 kB / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4724, allocations: 0 / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4724, allocations: 0 / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001438/0.4739, allocations: 466.4 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4739, allocations: 0 / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.4743, allocations: 47.97 kB / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.4743, allocations: 0 / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.4743, allocations: 320 / 0.7723 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.4743, allocations: 4 kB / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4743, allocations: 7.984 kB / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.4755, allocations: 299.3 kB / 0.7726 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.4755, allocations: 85.09 kB / 0.7727 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.4756, allocations: 4 kB / 0.7727 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.4759, allocations: 39.98 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.588e-05/0.4759, allocations: 4 kB / 0.7728 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.476, allocations: 3.984 kB / 0.7728 GB, free: 13.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.516e-05/0.476, allocations: 75.28 kB / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.476, allocations: 0 / 0.7728 GB, free: 13.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002435/0.4762, allocations: 12 kB / 0.7728 GB, free: 13.79 MB / 0.545 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 () * Number of clocked 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 (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.0001702/0.4764, allocations: 103.2 kB / 0.7729 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001196/0.4776, allocations: 191.8 kB / 0.7731 GB, free: 13.49 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4776, allocations: 7.938 kB / 0.7731 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.4782, allocations: 88.08 kB / 0.7732 GB, free: 13.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.4784, allocations: 2.75 kB / 0.7732 GB, free: 13.39 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.4795, allocations: 242.6 kB / 0.7734 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.4798, allocations: 0.6806 MB / 0.7741 GB, free: 12.42 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.46e-05/0.4799, allocations: 11.44 kB / 0.7741 GB, free: 12.41 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4799, allocations: 4 kB / 0.7741 GB, free: 12.41 MB / 0.545 GB Notification: Performance of Templates: time 0.002633/0.4825, allocations: 1.1 MB / 0.7752 GB, free: 11.31 MB / 0.545 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)