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.001126/0.001126, allocations: 109 kB / 16.41 MB, free: 6.438 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.001173/0.001173, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002484, allocations: 287.2 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.9035/0.9035, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 99.84 kB / 0.6822 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4273/0.4293, allocations: 86.98 MB / 0.7671 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001739/0.431, allocations: 0.5863 MB / 0.7677 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.4325, allocations: 1.108 MB / 0.7688 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.464e-05/0.4325, allocations: 3.938 kB / 0.7688 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.426e-05/0.4325, allocations: 0 / 0.7688 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.4328, allocations: 19.94 kB / 0.7688 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.597e-06/0.4328, allocations: 0 / 0.7688 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.772e-05/0.4328, allocations: 0 / 0.7688 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.502e-05/0.4329, allocations: 11.98 kB / 0.7688 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.291e-05/0.4329, allocations: 3.938 kB / 0.7688 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.089e-05/0.4329, allocations: 3.984 kB / 0.7688 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.4329, allocations: 0 / 0.7688 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.433, allocations: 19.92 kB / 0.7688 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.966e-06/0.4331, allocations: 4 kB / 0.7688 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.257e-05/0.4331, allocations: 0 / 0.7688 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 7.314e-05/0.4332, allocations: 19.91 kB / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.4332, allocations: 0 / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.272e-06/0.4332, allocations: 0 / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.4332, allocations: 0 / 0.7688 GB, free: 2.105 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.0002648/0.4335, allocations: 319.6 kB / 0.7691 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.4335, allocations: 12.03 kB / 0.7692 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.4335, allocations: 4.938 kB / 0.7692 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.993e-05/0.4336, allocations: 168 kB / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.4336, allocations: 384 / 0.7693 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.4337, allocations: 4.375 kB / 0.7693 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.049e-05/0.4338, allocations: 38 kB / 0.7694 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.4338, allocations: 0 / 0.7694 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.4338, allocations: 4 kB / 0.7694 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.4338, allocations: 4 kB / 0.7694 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.533e-05/0.4338, allocations: 4 kB / 0.7694 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.434, allocations: 157.6 kB / 0.7695 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.4342, allocations: 34.55 kB / 0.7696 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.825e-05/0.4342, allocations: 8.859 kB / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.4344, allocations: 85.19 kB / 0.7696 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.4344, allocations: 46.5 kB / 0.7697 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.4344, allocations: 0 / 0.7697 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.00425/0.4386, allocations: 0.5638 MB / 0.7702 GB, free: 500 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.4387, allocations: 51.41 kB / 0.7703 GB, free: 436 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.426e-05/0.4387, allocations: 89.86 kB / 0.7704 GB, free: 336 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.4388, allocations: 25.7 kB / 0.7704 GB, free: 304 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.4388, allocations: 80.14 kB / 0.7705 GB, free: 220 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.4389, allocations: 26.28 kB / 0.7705 GB, free: 196 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.4389, allocations: 25.64 kB / 0.7705 GB, free: 164 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.439, allocations: 310.8 kB / 0.7708 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.4396, allocations: 83.95 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006044/0.4403, allocations: 104.3 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.4414, allocations: 190.5 kB / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4414, allocations: 0 / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001251/0.4427, allocations: 221.5 kB / 0.7714 GB, free: 15.24 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.4427, allocations: 4 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4427, allocations: 0 / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4427, allocations: 4 kB / 0.7714 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.4431, allocations: 51.94 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.4432, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000346/0.4435, allocations: 44.39 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.4435, allocations: 4 kB / 0.7715 GB, free: 15.13 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.199e-05/0.4436, allocations: 112.2 kB / 0.7716 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.115e-05/0.4437, allocations: 11.84 kB / 0.7716 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.445, allocations: 233.1 kB / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.445, allocations: 3.984 kB / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.445, allocations: 0 / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4451, allocations: 0 / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.4465, allocations: 458.4 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.4466, allocations: 4 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.4469, allocations: 47.97 kB / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4469, allocations: 0 / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.447, allocations: 8.297 kB / 0.7723 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.447, allocations: 0 / 0.7723 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.447, allocations: 15.94 kB / 0.7723 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.4483, allocations: 299.4 kB / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.35e-05/0.4483, allocations: 77.11 kB / 0.7727 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.4483, allocations: 4 kB / 0.7727 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.4487, allocations: 35.98 kB / 0.7727 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/0.4487, allocations: 7.984 kB / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.4488, allocations: 4 kB / 0.7728 GB, free: 13.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.361e-05/0.4488, allocations: 79.28 kB / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4488, allocations: 0 / 0.7728 GB, free: 13.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002422/0.449, allocations: 12 kB / 0.7728 GB, free: 13.64 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.0001598/0.4492, allocations: 103.2 kB / 0.7729 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001227/0.4504, allocations: 183.8 kB / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4504, allocations: 4.188 kB / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0005797/0.451, allocations: 91.95 kB / 0.7732 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.4512, allocations: 7.625 kB / 0.7732 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.4524, allocations: 246.5 kB / 0.7735 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.4527, allocations: 0.6768 MB / 0.7741 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.602e-05/0.4528, allocations: 11.44 kB / 0.7741 GB, free: 12.27 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.4528, allocations: 0 / 0.7741 GB, free: 12.27 MB / 0.545 GB Notification: Performance of Templates: time 0.00243/0.4553, allocations: 1.101 MB / 0.7752 GB, free: 11.18 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)