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.004769/0.004769, allocations: 99.92 kB / 15.73 MB, free: 6.016 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.001127/0.001127, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002011/0.002011, allocations: 283 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 99.84 kB / 0.6815 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.438, allocations: 86.97 MB / 0.7664 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001486/0.4396, allocations: 0.5859 MB / 0.767 GB, free: 3.312 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.4407, allocations: 1.104 MB / 0.7681 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.415e-05/0.4408, allocations: 4 kB / 0.7681 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.4408, allocations: 3.938 kB / 0.7681 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.441, allocations: 23.91 kB / 0.7681 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.096e-06/0.441, allocations: 0 / 0.7681 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.689e-05/0.4411, allocations: 4 kB / 0.7681 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.743e-05/0.4411, allocations: 0 / 0.7681 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.639e-05/0.4411, allocations: 7.938 kB / 0.7681 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.965e-05/0.4412, allocations: 4 kB / 0.7681 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.4412, allocations: 0 / 0.7681 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.4413, allocations: 27.89 kB / 0.7681 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.181e-06/0.4413, allocations: 0 / 0.7681 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.263e-05/0.4413, allocations: 0 / 0.7681 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 7.703e-05/0.4414, allocations: 19.92 kB / 0.7682 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.4414, allocations: 0 / 0.7682 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4414, allocations: 0 / 0.7682 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.4414, allocations: 0 / 0.7682 GB, free: 2.098 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.0002531/0.4417, allocations: 313.6 kB / 0.7685 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.4417, allocations: 12.03 kB / 0.7685 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.4418, allocations: 8.938 kB / 0.7685 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.061e-05/0.4419, allocations: 168.3 kB / 0.7686 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.583e-06/0.4419, allocations: 384 / 0.7686 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.4419, allocations: 384 / 0.7686 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.435e-05/0.442, allocations: 38 kB / 0.7687 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.442, allocations: 3.953 kB / 0.7687 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.442, allocations: 8 kB / 0.7687 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.442, allocations: 0 / 0.7687 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.29e-05/0.4421, allocations: 8 kB / 0.7687 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.4422, allocations: 157.7 kB / 0.7689 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.4424, allocations: 34.45 kB / 0.7689 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.612e-05/0.4424, allocations: 16.94 kB / 0.7689 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.4426, allocations: 81.11 kB / 0.769 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.4426, allocations: 34.5 kB / 0.769 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.4426, allocations: 4 kB / 0.769 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.004068/0.4467, allocations: 0.5717 MB / 0.7696 GB, free: 488 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.4467, allocations: 51.41 kB / 0.7696 GB, free: 424 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.022e-05/0.4468, allocations: 89.86 kB / 0.7697 GB, free: 324 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.4468, allocations: 25.7 kB / 0.7697 GB, free: 292 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.051e-05/0.4468, allocations: 80.14 kB / 0.7698 GB, free: 208 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.4469, allocations: 31.3 kB / 0.7698 GB, free: 180 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.4469, allocations: 21.72 kB / 0.7699 GB, free: 152 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.447, allocations: 314.8 kB / 0.7702 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000557/0.4476, allocations: 79.95 kB / 0.7702 GB, free: 15.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005547/0.4482, allocations: 104.3 kB / 0.7703 GB, free: 15.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.4493, allocations: 190.4 kB / 0.7705 GB, free: 15.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.4493, allocations: 0 / 0.7705 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001188/0.4505, allocations: 217.5 kB / 0.7707 GB, free: 15.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.4505, allocations: 8.062 kB / 0.7707 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.4505, allocations: 4 kB / 0.7707 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.4505, allocations: 0 / 0.7707 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.4509, allocations: 51.97 kB / 0.7708 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.4509, allocations: 3.938 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.4512, allocations: 39.98 kB / 0.7708 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.4513, allocations: 0 / 0.7708 GB, free: 15.12 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 8.092e-05/0.4513, allocations: 117.8 kB / 0.7709 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.4514, allocations: 3.938 kB / 0.7709 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.4527, allocations: 233.1 kB / 0.7712 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4527, allocations: 4 kB / 0.7712 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4527, allocations: 0 / 0.7712 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4527, allocations: 0 / 0.7712 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.4542, allocations: 454.4 kB / 0.7716 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4542, allocations: 320 / 0.7716 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.4545, allocations: 47.97 kB / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4546, allocations: 4 kB / 0.7717 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.4546, allocations: 8 kB / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4546, allocations: 0 / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4546, allocations: 0 / 0.7717 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.4558, allocations: 315.3 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.4559, allocations: 77.11 kB / 0.772 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.4559, allocations: 0 / 0.772 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.4562, allocations: 43.97 kB / 0.7721 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.4563, allocations: 3.938 kB / 0.7721 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.4563, allocations: 8 kB / 0.7721 GB, free: 13.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.328e-05/0.4563, allocations: 75.28 kB / 0.7722 GB, free: 13.65 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.283e-06/0.4563, allocations: 4 kB / 0.7722 GB, free: 13.65 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002369/0.4566, allocations: 19.86 kB / 0.7722 GB, free: 13.63 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.0001431/0.4567, allocations: 103.2 kB / 0.7723 GB, free: 13.52 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.4579, allocations: 179.8 kB / 0.7725 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4579, allocations: 0 / 0.7725 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005817/0.4585, allocations: 96.06 kB / 0.7725 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.4587, allocations: 5.125 kB / 0.7726 GB, free: 13.24 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.4598, allocations: 216.9 kB / 0.7728 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.46, allocations: 0.6768 MB / 0.7734 GB, free: 12.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001671/0.4602, allocations: 28 kB / 0.7734 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.742e-05/0.4602, allocations: 7.438 kB / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4603, allocations: 0 / 0.7735 GB, free: 12.27 MB / 0.545 GB Notification: Performance of Templates: time 0.002541/0.4628, allocations: 0.8157 MB / 0.7742 GB, free: 11.47 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)