Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.029/2.029, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.001063/0.001063, allocations: 188.8 kB / 487.4 MB, free: 5.047 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.356/1.356, allocations: 221.5 MB / 0.7824 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009717/0.0009717, allocations: 91.86 kB / 0.9219 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.563e-05/1.567e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2538, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8513/1.105, allocations: 149.3 MB / 1.352 GB, free: 18.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/1.105, allocations: 77.83 kB / 1.352 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004728/1.11, allocations: 1.415 MB / 1.353 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.864e-06/1.11, allocations: 4 kB / 1.353 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.867e-06/1.11, allocations: 3.562 kB / 1.353 GB, free: 33.81 MB / 0.8386 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.0003053/1.111, allocations: 340.1 kB / 1.353 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/1.111, allocations: 8.453 kB / 1.354 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/1.111, allocations: 8.375 kB / 1.354 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.672e-05/1.111, allocations: 170.4 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/1.111, allocations: 0 / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-06/1.111, allocations: 3.938 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.249e-05/1.111, allocations: 12.22 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.593e-05/1.111, allocations: 40.38 kB / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/1.111, allocations: 0 / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/1.111, allocations: 0 / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.111, allocations: 0.6094 kB / 1.354 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003219/1.111, allocations: 240.7 kB / 1.354 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.86e-05/1.111, allocations: 27 kB / 1.354 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.305e-05/1.111, allocations: 16.02 kB / 1.354 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005719/1.112, allocations: 464.4 kB / 1.354 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/1.112, allocations: 39.16 kB / 1.354 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/1.112, allocations: 0 / 1.354 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.003223/1.115, allocations: 0.5473 MB / 1.355 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.044e-05/1.115, allocations: 55.44 kB / 1.355 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.774e-05/1.115, allocations: 98.75 kB / 1.355 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/1.115, allocations: 25.7 kB / 1.355 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.305e-05/1.115, allocations: 84.31 kB / 1.355 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.885e-05/1.115, allocations: 13.8 kB / 1.355 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/1.115, allocations: 0 / 1.355 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001206/1.116, allocations: 316.3 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.423e-05/1.116, allocations: 7.25 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.313e-05/1.116, allocations: 8.562 kB / 1.356 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003011/1.119, allocations: 0.5121 MB / 1.356 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.119, allocations: 0 / 1.356 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.003064/1.122, allocations: 0.5448 MB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/1.122, allocations: 7.844 kB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/1.122, allocations: 0 / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/1.122, allocations: 0.7031 kB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.415e-05/1.122, allocations: 9.219 kB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/1.122, allocations: 4.891 kB / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.492e-05/1.122, allocations: 5.156 kB / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/1.122, allocations: 0 / 1.357 GB, free: 31.65 MB / 0.8386 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 () * 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 6.509e-05/1.122, allocations: 110.8 kB / 1.357 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/1.122, allocations: 3.906 kB / 1.357 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/1.125, allocations: 0.557 MB / 1.357 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/1.125, allocations: 0 / 1.357 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.125, allocations: 0.75 kB / 1.357 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/1.125, allocations: 3.844 kB / 1.357 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/1.125, allocations: 139 kB / 1.357 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/1.125, allocations: 0 / 1.357 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.303e-05/1.125, allocations: 9.188 kB / 1.357 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/1.125, allocations: 4.641 kB / 1.357 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/1.125, allocations: 3.984 kB / 1.357 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/1.125, allocations: 0.6562 kB / 1.357 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.125, allocations: 3.938 kB / 1.357 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003137/1.129, allocations: 0.6448 MB / 1.358 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.691e-05/1.129, allocations: 85.67 kB / 1.358 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/1.129, allocations: 0 / 1.358 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.947e-05/1.129, allocations: 5.016 kB / 1.358 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/1.129, allocations: 5.203 kB / 1.358 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/1.129, allocations: 0 / 1.358 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.965e-05/1.129, allocations: 88.27 kB / 1.358 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2e-07/1.129, allocations: 4.031 kB / 1.358 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002388/1.129, allocations: 20.8 kB / 1.358 GB, free: 30.93 MB / 0.8386 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 () * 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.0001854/1.129, allocations: 124 kB / 1.358 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.896e-05/1.129, allocations: 12.88 kB / 1.358 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.129, allocations: 0 / 1.358 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.843e-05/1.129, allocations: 7.953 kB / 1.358 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/1.13, allocations: 2.422 kB / 1.358 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002109/1.13, allocations: 66.75 kB / 1.359 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/1.13, allocations: 0.6861 MB / 1.359 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.421e-05/1.13, allocations: 4.438 kB / 1.359 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.817e-05/1.13, allocations: 7.438 kB / 1.359 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.13, allocations: 0 / 1.359 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.002595/1.133, allocations: 0.5736 MB / 1.36 GB, free: 29.98 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches