Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.836/4.836, allocations: 0.5623 GB / 0.5769 GB, free: 3.273 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002518/0.002517, allocations: 356.8 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.286/4.286, allocations: 410.7 MB / 1.112 GB, free: 5.938 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001787/0.001786, allocations: 196.5 kB / 1.225 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005135/0.0005137, allocations: 15.98 kB / 1.348 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5873/0.5878, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001383/0.5893, allocations: 1.176 MB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0008324/0.5901, allocations: 0.5661 MB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.5902, allocations: 1 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.262e-05/0.5902, allocations: 0 / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.5903, allocations: 8.594 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.5905, allocations: 40.86 kB / 1.462 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 5.809e-05/0.5906, allocations: 23.88 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.984e-05/0.5906, allocations: 4.891 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 7.582e-05/0.5907, allocations: 15.94 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.812e-05/0.5908, allocations: 12.77 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.5908, allocations: 0 / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.5909, allocations: 52.44 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 8.92e-06/0.591, allocations: 2.75 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.591, allocations: 33.7 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 9.838e-05/0.5911, allocations: 39.94 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.459e-06/0.5911, allocations: 3.984 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.434e-06/0.5911, allocations: 0 / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.871e-06/0.5911, allocations: 3.938 kB / 1.463 GB, free: 282.3 MB / 0.8542 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.0003302/0.5915, allocations: 343.1 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.5915, allocations: 15.62 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.5916, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.712e-05/0.5916, allocations: 174.9 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.5917, allocations: 5.219 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.705e-06/0.5917, allocations: 0 / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.5918, allocations: 47.22 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.478e-06/0.5919, allocations: 0.5938 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.779e-06/0.5919, allocations: 0 / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.774e-06/0.5919, allocations: 0.7812 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.592, allocations: 25.95 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.5923, allocations: 252.9 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 9.707e-05/0.5924, allocations: 35.5 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.911e-05/0.5925, allocations: 20.91 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007763/0.5933, allocations: 0.4907 MB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.5933, allocations: 35.25 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 2.214e-06/0.5933, allocations: 0 / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0002732/0.5936, allocations: 67.45 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.5936, allocations: 60.05 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.993e-05/0.5937, allocations: 114.8 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.78e-06/0.5937, allocations: 25.7 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.217e-05/0.5938, allocations: 85.92 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.5938, allocations: 11.84 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-06/0.5938, allocations: 0 / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 4.893e-05/0.5939, allocations: 310.8 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.556e-05/0.594, allocations: 17.48 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.608e-05/0.594, allocations: 8.688 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.837e-05/0.5941, allocations: 17.77 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.283e-06/0.5941, allocations: 3.938 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001505/0.5943, allocations: 58.59 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5943, allocations: 8 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.931e-06/0.5943, allocations: 4.906 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.5943, allocations: 0 / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.688e-05/0.5944, allocations: 13.23 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.609e-06/0.5944, allocations: 0 / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.578e-05/0.5945, allocations: 7.953 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.031e-06/0.5945, allocations: 2.406 kB / 1.465 GB, free: 279.8 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.859e-05/0.5946, allocations: 109.8 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.5946, allocations: 0 / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.5948, allocations: 66.17 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.95e-06/0.5948, allocations: 0.8438 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.445e-06/0.5949, allocations: 4 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.478e-06/0.5949, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.595, allocations: 162.5 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-06/0.595, allocations: 0 / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.086e-05/0.5951, allocations: 16.83 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.948e-06/0.5951, allocations: 0 / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.849e-06/0.5951, allocations: 0.9062 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.732e-06/0.5952, allocations: 3.938 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.851e-06/0.5952, allocations: 0.6562 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.5953, allocations: 155.4 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.5954, allocations: 90.31 kB / 1.465 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.5954, allocations: 0 / 1.465 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.5955, allocations: 6.844 kB / 1.465 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.5956, allocations: 4 kB / 1.465 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.5956, allocations: 0 / 1.465 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.526e-05/0.5956, allocations: 91.25 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.93e-07/0.5956, allocations: 0 / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003397/0.596, allocations: 20 kB / 1.466 GB, free: 279 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001548/0.5961, allocations: 112.4 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000156/0.5963, allocations: 31.64 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.773e-06/0.5963, allocations: 0 / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/0.5964, allocations: 15.98 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.5967, allocations: 11.89 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002803/0.597, allocations: 129.6 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.5971, allocations: 0.6857 MB / 1.466 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.185e-05/0.5972, allocations: 3.984 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.159e-05/0.5972, allocations: 13.84 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of SimCode: time 1.552e-06/0.5972, allocations: 0 / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of Templates: time 0.003028/0.6002, allocations: 0.6243 MB / 1.467 GB, free: 277.4 MB / 0.8542 GB