Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.036/2.036, allocations: 391.2 MB / 407 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 200.9 kB / 499.1 MB, free: 4.688 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009761/0.0009761, allocations: 107.2 kB / 0.9329 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000997/0.0009971, allocations: 52.16 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2542, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002442/0.2567, allocations: 1.511 MB / 1.22 GB, free: 115.7 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0008267/0.2575, allocations: 0.5744 MB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.2576, allocations: 0 / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.396e-05/0.2577, allocations: 3.938 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 4.931e-05/0.2577, allocations: 7.938 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.258, allocations: 35.95 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 6.193e-05/0.258, allocations: 27.86 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 8.556e-05/0.2581, allocations: 8 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 8.884e-05/0.2582, allocations: 7.938 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.166e-05/0.2583, allocations: 15.92 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.2583, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.2584, allocations: 63.94 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.2584, allocations: 0 / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.2585, allocations: 15.88 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.2586, allocations: 63.84 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2586, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd: time 9.71e-07/0.2586, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.2586, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 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.000345/0.259, allocations: 349.6 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.259, allocations: 11.98 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.2591, allocations: 8.844 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.149e-05/0.2591, allocations: 172.3 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2592, allocations: 4.375 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.2592, allocations: 384 / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.2593, allocations: 49.94 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.2593, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.2593, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2593, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.734e-05/0.2594, allocations: 19.98 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002637/0.2597, allocations: 260.9 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.844e-05/0.2598, allocations: 30.56 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.16e-05/0.2598, allocations: 20.86 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006201/0.2605, allocations: 477.4 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.464e-05/0.2605, allocations: 34.56 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/0.2605, allocations: 0 / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.000219/0.2607, allocations: 65.66 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.129e-05/0.2608, allocations: 51.41 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.216e-05/0.2608, allocations: 118 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 7.725e-06/0.2608, allocations: 29.64 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.701e-05/0.2609, allocations: 84.14 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.2609, allocations: 3.906 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.2609, allocations: 17.7 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.261, allocations: 318.8 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.757e-05/0.261, allocations: 11.94 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.144e-05/0.2611, allocations: 11.98 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.731e-05/0.2611, allocations: 32.84 kB / 1.222 GB, free: 112.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2611, allocations: 0 / 1.222 GB, free: 112.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.734e-05/0.2612, allocations: 57.59 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2613, allocations: 4.625 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2613, allocations: 0 / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2613, allocations: 0 / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.493e-05/0.2614, allocations: 7.984 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.2614, allocations: 4.031 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.916e-05/0.2614, allocations: 7.938 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2614, allocations: 0 / 1.223 GB, free: 112.4 MB / 0.823 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 4.935e-05/0.2615, allocations: 122.4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.2615, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.2616, allocations: 65.2 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2616, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2617, allocations: 32 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2617, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.2618, allocations: 165.6 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2618, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.2618, allocations: 7.984 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2618, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.2618, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2619, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2619, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.2621, allocations: 0.716 MB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.752e-05/0.2621, allocations: 77.11 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.2622, allocations: 4 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.552e-05/0.2622, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.11e-05/0.2623, allocations: 3.938 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.2623, allocations: 7.984 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.586e-05/0.2623, allocations: 91.25 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of sort global known variables: time 9e-08/0.2623, allocations: 0 / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003071/0.2626, allocations: 12 kB / 1.224 GB, free: 110.9 MB / 0.823 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.0001385/0.2628, allocations: 115.2 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001183/0.2629, allocations: 23.98 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2629, allocations: 0 / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 4.108e-05/0.2629, allocations: 15.98 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.2631, allocations: 4.125 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002805/0.2634, allocations: 235.2 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.6e-05/0.2635, allocations: 0.6809 MB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 2.199e-05/0.2636, allocations: 7.984 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.414e-05/0.2636, allocations: 7.438 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of SimCode: time 2e-07/0.2636, allocations: 4 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of Templates: time 0.002285/0.2659, allocations: 0.6391 MB / 1.225 GB, free: 109.2 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)