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/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.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.0009302/0.0009304, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001135/0.001135, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.837/2.837, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004013/0.0004014, allocations: 11.59 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3519, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002032/0.354, allocations: 1.164 MB / 1.059 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3553, allocations: 0.5341 MB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.217e-05/0.3554, allocations: 4 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.236e-05/0.3554, allocations: 3.938 kB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.532e-05/0.3555, allocations: 0 / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.3558, allocations: 35.89 kB / 1.06 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.296e-05/0.3559, allocations: 23.86 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.3561, allocations: 8 kB / 1.06 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.3562, allocations: 15.97 kB / 1.06 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.943e-05/0.3562, allocations: 11.94 kB / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.3563, allocations: 8 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.3564, allocations: 43.95 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.3565, allocations: 11.92 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.27e-05/0.3565, allocations: 29.7 kB / 1.06 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.3567, allocations: 43.88 kB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3567, allocations: 0 / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.855e-06/0.3567, allocations: 0 / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3567, allocations: 3.938 kB / 1.06 GB, free: 3.359 MB / 0.8106 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.0005803/0.3573, allocations: 347.5 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3574, allocations: 16.03 kB / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.3574, allocations: 0 / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.3576, allocations: 163.1 kB / 1.06 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.3576, allocations: 0 / 1.06 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3576, allocations: 3.953 kB / 1.06 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.3578, allocations: 49.62 kB / 1.06 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3578, allocations: 0 / 1.06 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3579, allocations: 0 / 1.06 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3579, allocations: 7.984 kB / 1.06 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.358, allocations: 27.98 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/0.3585, allocations: 260.8 kB / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.3586, allocations: 34.56 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.629e-05/0.3587, allocations: 16.92 kB / 1.061 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008464/0.3595, allocations: 0.4974 MB / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.3596, allocations: 30.56 kB / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.3596, allocations: 0 / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002971/0.3599, allocations: 69.67 kB / 1.061 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3599, allocations: 55.41 kB / 1.061 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.36, allocations: 105.8 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.3601, allocations: 25.7 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.3601, allocations: 88.14 kB / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.3602, allocations: 7.891 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.3602, allocations: 0 / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3603, allocations: 315 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.849e-05/0.3604, allocations: 15.94 kB / 1.062 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.712e-05/0.3604, allocations: 11.98 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.323e-05/0.3605, allocations: 15.95 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3605, allocations: 3.938 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001346/0.3606, allocations: 61.73 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3607, allocations: 8 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3607, allocations: 0 / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3607, allocations: 0 / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.014e-05/0.3608, allocations: 4 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3608, allocations: 0 / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.016e-05/0.3609, allocations: 11.89 kB / 1.062 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.3609, allocations: 0 / 1.062 GB, free: 0.832 MB / 0.8106 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 0.0001064/0.361, allocations: 125.8 kB / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.361, allocations: 0 / 1.062 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/0.3612, allocations: 65.14 kB / 1.062 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3613, allocations: 0 / 1.062 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3613, allocations: 3.938 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3613, allocations: 0 / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.3615, allocations: 165.7 kB / 1.062 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3615, allocations: 7.984 kB / 1.062 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.3615, allocations: 4 kB / 1.062 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3616, allocations: 4 kB / 1.062 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3616, allocations: 0 / 1.062 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3616, allocations: 0 / 1.062 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3616, allocations: 0 / 1.062 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.3618, allocations: 163.4 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.3618, allocations: 89.06 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.3618, allocations: 0 / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.915e-05/0.3619, allocations: 0 / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.362, allocations: 7.984 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.362, allocations: 0 / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.474e-05/0.362, allocations: 83.28 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of sort global known variables: time 4.81e-07/0.362, allocations: 4 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002445/0.3623, allocations: 20.02 kB / 1.063 GB, free: 4 kB / 0.8106 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.0002201/0.3625, allocations: 111.2 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.3627, allocations: 31.91 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3627, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.871e-05/0.3627, allocations: 19.94 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.363, allocations: 4.125 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003304/0.3633, allocations: 132.6 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3636, allocations: 0.6809 MB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.795e-05/0.3636, allocations: 4 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.089e-05/0.3636, allocations: 7.438 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of SimCode: time 8.12e-07/0.3636, allocations: 4 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of Templates: time 0.003746/0.3674, allocations: 0.6189 MB / 1.064 GB, free: 14.33 MB / 0.8262 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 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches