Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 104.6 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.001401/0.001401, allocations: 183 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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002058/0.002058, allocations: 299.7 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9008/0.9008, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 91.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4353, allocations: 86.97 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.002317/0.4377, allocations: 1.461 MB / 0.7685 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008292/0.4385, allocations: 0.5636 MB / 0.769 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.29e-05/0.4386, allocations: 4 kB / 0.769 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.4386, allocations: 0 / 0.769 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.301e-05/0.4387, allocations: 7.922 kB / 0.769 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.4389, allocations: 51.83 kB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.369e-05/0.439, allocations: 23.92 kB / 0.7691 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9e-05/0.4391, allocations: 11.98 kB / 0.7691 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.89e-05/0.4392, allocations: 11.88 kB / 0.7691 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.4392, allocations: 15.92 kB / 0.7691 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.4393, allocations: 8 kB / 0.7692 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.4394, allocations: 51.94 kB / 0.7692 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.832e-05/0.4395, allocations: 8 kB / 0.7692 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.115e-05/0.4395, allocations: 11.88 kB / 0.7692 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.4396, allocations: 67.52 kB / 0.7693 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4396, allocations: 0 / 0.7693 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.936e-06/0.4396, allocations: 3.984 kB / 0.7693 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.4396, allocations: 0 / 0.7693 GB, free: 1.617 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.0004428/0.4401, allocations: 343.5 kB / 0.7696 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.4401, allocations: 12.03 kB / 0.7696 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.4402, allocations: 12.78 kB / 0.7696 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.4403, allocations: 170.8 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.4404, allocations: 384 / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.4404, allocations: 4.375 kB / 0.7698 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.4405, allocations: 49.94 kB / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.4405, allocations: 0 / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.4405, allocations: 0 / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.4405, allocations: 0 / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.41e-05/0.4406, allocations: 23.98 kB / 0.7699 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002972/0.4409, allocations: 252.9 kB / 0.7701 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.163e-05/0.441, allocations: 42.48 kB / 0.7702 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.13e-05/0.4411, allocations: 12.92 kB / 0.7702 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007779/0.4419, allocations: 485.5 kB / 0.7706 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.4419, allocations: 30.56 kB / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.4419, allocations: 0 / 0.7707 GB, free: 15.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0002289/0.4421, allocations: 65.67 kB / 0.7707 GB, free: 15.88 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.4422, allocations: 51.53 kB / 0.7708 GB, free: 15.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4423, allocations: 109.8 kB / 0.7709 GB, free: 15.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.4423, allocations: 33.64 kB / 0.7709 GB, free: 15.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/0.4424, allocations: 87.98 kB / 0.771 GB, free: 15.58 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.4424, allocations: 7.844 kB / 0.771 GB, free: 15.57 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.4424, allocations: 13.72 kB / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4426, allocations: 318.8 kB / 0.7713 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.204e-05/0.4426, allocations: 8 kB / 0.7713 GB, free: 15.22 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.465e-05/0.4427, allocations: 15.98 kB / 0.7713 GB, free: 15.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.433e-05/0.4427, allocations: 28.78 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4428, allocations: 0 / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001103/0.4429, allocations: 53.59 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.4429, allocations: 8 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.4429, allocations: 0 / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.4429, allocations: 0 / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.161e-05/0.443, allocations: 16.02 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.443, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.182e-05/0.4431, allocations: 4 kB / 0.7715 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.4431, allocations: 0 / 0.7715 GB, free: 15.09 MB / 0.545 GB 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 7.184e-05/0.4432, allocations: 116.2 kB / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.4432, allocations: 4 kB / 0.7716 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.4434, allocations: 57.2 kB / 0.7716 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.4434, allocations: 0 / 0.7716 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.4434, allocations: 4.031 kB / 0.7716 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.4434, allocations: 0 / 0.7716 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.4435, allocations: 169.6 kB / 0.7718 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4436, allocations: 3.938 kB / 0.7718 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-05/0.4436, allocations: 4 kB / 0.7718 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.4436, allocations: 3.984 kB / 0.7718 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.4436, allocations: 3.938 kB / 0.7718 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4436, allocations: 0 / 0.7718 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4436, allocations: 4 kB / 0.7718 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.4438, allocations: 151.4 kB / 0.772 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.4438, allocations: 77.11 kB / 0.772 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.4438, allocations: 7.984 kB / 0.772 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.975e-05/0.4439, allocations: 4 kB / 0.772 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.4439, allocations: 0 / 0.772 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.444, allocations: 0 / 0.772 GB, free: 14.39 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.212e-05/0.444, allocations: 95.2 kB / 0.7721 GB, free: 14.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.444, allocations: 4.031 kB / 0.7721 GB, free: 14.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002349/0.4442, allocations: 16 kB / 0.7721 GB, free: 14.28 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 (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.0001509/0.4444, allocations: 111.2 kB / 0.7723 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001306/0.4445, allocations: 27.92 kB / 0.7723 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.4446, allocations: 0 / 0.7723 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.457e-05/0.4446, allocations: 15.98 kB / 0.7723 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.4448, allocations: 3.938 kB / 0.7723 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.4451, allocations: 148.5 kB / 0.7724 GB, free: 13.94 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.4454, allocations: 0.6768 MB / 0.7731 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.217e-05/0.4454, allocations: 11.44 kB / 0.7731 GB, free: 13.22 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4454, allocations: 0 / 0.7731 GB, free: 13.22 MB / 0.545 GB Notification: Performance of Templates: time 0.002315/0.4477, allocations: 0.8217 MB / 0.7739 GB, free: 12.41 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)