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.001637/0.001637, allocations: 111.6 kB / 16.41 MB, free: 6.516 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.001668/0.001668, allocations: 185.2 kB / 17.34 MB, free: 5.734 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.446/1.446, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002717/0.002717, allocations: 275.7 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0028/0.0028, allocations: 91.86 kB / 0.6822 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4245, allocations: 86.97 MB / 0.7671 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001546/0.4261, allocations: 0.5854 MB / 0.7677 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.4275, allocations: 1.112 MB / 0.7688 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.4275, allocations: 0 / 0.7688 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 9.978e-06/0.4275, allocations: 0 / 0.7688 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.4277, allocations: 27.84 kB / 0.7688 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.056e-06/0.4277, allocations: 4 kB / 0.7688 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 3.277e-05/0.4277, allocations: 0 / 0.7688 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.343e-05/0.4278, allocations: 0 / 0.7688 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.764e-05/0.4278, allocations: 7.938 kB / 0.7688 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 1.852e-05/0.4278, allocations: 0 / 0.7688 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.161e-06/0.4278, allocations: 4 kB / 0.7688 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.648e-05/0.4279, allocations: 19.92 kB / 0.7688 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.4279, allocations: 7.984 kB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.434e-05/0.4279, allocations: 3.984 kB / 0.7688 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 6.914e-05/0.428, allocations: 11.94 kB / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.428, allocations: 0 / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.122e-06/0.428, allocations: 0 / 0.7688 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.428, allocations: 0 / 0.7688 GB, free: 2.121 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.000317/0.4283, allocations: 321.6 kB / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.4284, allocations: 12.03 kB / 0.7692 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.489e-05/0.4284, allocations: 4.938 kB / 0.7692 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.4285, allocations: 164.4 kB / 0.7693 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.4285, allocations: 4.375 kB / 0.7693 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.4285, allocations: 4.312 kB / 0.7693 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.909e-05/0.4286, allocations: 38.02 kB / 0.7694 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.4286, allocations: 7.953 kB / 0.7694 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.4286, allocations: 0 / 0.7694 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4287, allocations: 3.984 kB / 0.7694 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.436e-05/0.4287, allocations: 7.984 kB / 0.7694 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001572/0.4288, allocations: 153.7 kB / 0.7695 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.429, allocations: 34.52 kB / 0.7696 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.067e-05/0.429, allocations: 8.953 kB / 0.7696 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.4292, allocations: 85.09 kB / 0.7696 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.4292, allocations: 34.5 kB / 0.7697 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.4292, allocations: 0 / 0.7697 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.004412/0.4336, allocations: 0.5715 MB / 0.7702 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.4336, allocations: 55.41 kB / 0.7703 GB, free: 448 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.332e-05/0.4337, allocations: 89.86 kB / 0.7704 GB, free: 348 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.4337, allocations: 25.7 kB / 0.7704 GB, free: 316 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.898e-05/0.4338, allocations: 84.12 kB / 0.7705 GB, free: 228 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.4338, allocations: 23.36 kB / 0.7705 GB, free: 208 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.458e-05/0.4339, allocations: 25.66 kB / 0.7705 GB, free: 176 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.434, allocations: 314.8 kB / 0.7708 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006385/0.4347, allocations: 83.94 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006376/0.4353, allocations: 104.3 kB / 0.771 GB, free: 15.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.4365, allocations: 194.4 kB / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.4365, allocations: 0 / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001285/0.4378, allocations: 209.5 kB / 0.7714 GB, free: 15.25 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4378, allocations: 8 kB / 0.7714 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.4378, allocations: 3.984 kB / 0.7714 GB, free: 15.24 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.4379, allocations: 4.031 kB / 0.7714 GB, free: 15.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.4383, allocations: 47.97 kB / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.4383, allocations: 7.984 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003491/0.4386, allocations: 35.98 kB / 0.7715 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.4386, allocations: 11.94 kB / 0.7715 GB, free: 15.14 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 0.0001001/0.4387, allocations: 112.2 kB / 0.7716 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.4388, allocations: 7.922 kB / 0.7716 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.4401, allocations: 229.1 kB / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.4401, allocations: 4 kB / 0.7718 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4401, allocations: 4 kB / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.4401, allocations: 0 / 0.7718 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.4417, allocations: 454.6 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4417, allocations: 4.062 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.4421, allocations: 51.97 kB / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-06/0.4421, allocations: 0 / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.4421, allocations: 4 kB / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4421, allocations: 0 / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4421, allocations: 0 / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.4434, allocations: 315.3 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.4435, allocations: 77.11 kB / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.4435, allocations: 0 / 0.7727 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.4439, allocations: 43.97 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/0.4439, allocations: 4 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4439, allocations: 4 kB / 0.7728 GB, free: 13.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.2e-05/0.444, allocations: 75.28 kB / 0.7728 GB, free: 13.67 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.444, allocations: 0 / 0.7728 GB, free: 13.67 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002509/0.4442, allocations: 15.94 kB / 0.7728 GB, free: 13.66 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.0001695/0.4444, allocations: 115.5 kB / 0.773 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.4457, allocations: 179.8 kB / 0.7731 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4457, allocations: 0 / 0.7731 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.4463, allocations: 96.06 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.0002096/0.4465, allocations: 2.75 kB / 0.7732 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.4477, allocations: 217 kB / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.448, allocations: 0.6767 MB / 0.7741 GB, free: 12.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001771/0.4482, allocations: 31.92 kB / 0.7741 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.294e-05/0.4482, allocations: 15.44 kB / 0.7741 GB, free: 12.28 MB / 0.545 GB Notification: Performance of SimCode: time 4.61e-07/0.4482, allocations: 0 / 0.7741 GB, free: 12.28 MB / 0.545 GB Notification: Performance of Templates: time 0.003129/0.4514, allocations: 0.8087 MB / 0.7749 GB, free: 11.48 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)