Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.457/2.457, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001087/0.001087, allocations: 185.1 kB / 498.1 MB, free: 5.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.572/1.572, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.001121/0.001121, allocations: 96.31 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003732, allocations: 12.88 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3019, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.5112, allocations: 149.7 MB / 1.369 GB, free: 12.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5115, allocations: 83.94 kB / 1.369 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003386/0.515, allocations: 1.12 MB / 1.37 GB, free: 11.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.224e-06/0.515, allocations: 0 / 1.37 GB, free: 11.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.515, allocations: 0 / 1.37 GB, free: 11.2 MB / 0.8698 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.0003951/0.5154, allocations: 353.1 kB / 1.371 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.5155, allocations: 8.031 kB / 1.371 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.346e-05/0.5155, allocations: 8 kB / 1.371 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.5156, allocations: 171 kB / 1.371 GB, free: 10.59 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.5156, allocations: 0 / 1.371 GB, free: 10.59 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.5157, allocations: 7.984 kB / 1.371 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.5159, allocations: 61.61 kB / 1.371 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.5159, allocations: 0 / 1.371 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.5159, allocations: 0 / 1.371 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.5159, allocations: 0 / 1.371 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.5161, allocations: 43.97 kB / 1.371 GB, free: 10.47 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.5165, allocations: 264.9 kB / 1.371 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.5167, allocations: 50.5 kB / 1.371 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.5168, allocations: 81.09 kB / 1.371 GB, free: 10 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.5168, allocations: 38.62 kB / 1.371 GB, free: 9.957 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.5168, allocations: 0 / 1.371 GB, free: 9.957 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0003737/0.5172, allocations: 97.55 kB / 1.371 GB, free: 9.855 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.5173, allocations: 51.41 kB / 1.371 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.149e-05/0.5173, allocations: 100.9 kB / 1.371 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.5174, allocations: 25.7 kB / 1.371 GB, free: 9.656 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.5174, allocations: 88.12 kB / 1.372 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.5174, allocations: 3.906 kB / 1.372 GB, free: 9.562 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-06/0.5175, allocations: 4.125 kB / 1.372 GB, free: 9.559 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.5176, allocations: 322.7 kB / 1.372 GB, free: 9.234 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.525e-05/0.5177, allocations: 19.98 kB / 1.372 GB, free: 9.215 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.661e-05/0.5177, allocations: 23.97 kB / 1.372 GB, free: 9.191 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.152e-05/0.5178, allocations: 24.05 kB / 1.372 GB, free: 9.168 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5178, allocations: 0 / 1.372 GB, free: 9.168 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001867/0.518, allocations: 77.66 kB / 1.372 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.5181, allocations: 8.031 kB / 1.372 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.5181, allocations: 0 / 1.372 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.5181, allocations: 0 / 1.372 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.593e-05/0.5182, allocations: 8 kB / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.5182, allocations: 0 / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.996e-05/0.5183, allocations: 11.98 kB / 1.372 GB, free: 9.059 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.5183, allocations: 0 / 1.372 GB, free: 9.059 MB / 0.8698 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 7.962e-05/0.5183, allocations: 121.8 kB / 1.372 GB, free: 8.93 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.5184, allocations: 3.938 kB / 1.372 GB, free: 8.926 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002417/0.5186, allocations: 84.77 kB / 1.372 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.5186, allocations: 3.938 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5186, allocations: 4.031 kB / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5187, allocations: 0 / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.5188, allocations: 165.5 kB / 1.372 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.5188, allocations: 256 / 1.372 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.476e-05/0.5189, allocations: 11.98 kB / 1.372 GB, free: 8.605 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.5189, allocations: 4 kB / 1.372 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.5189, allocations: 0 / 1.372 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5189, allocations: 0 / 1.372 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.5189, allocations: 0 / 1.372 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.5192, allocations: 183.4 kB / 1.373 GB, free: 8.406 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.5192, allocations: 77.11 kB / 1.373 GB, free: 8.312 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.5193, allocations: 0 / 1.373 GB, free: 8.312 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.839e-05/0.5193, allocations: 16.02 kB / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.5194, allocations: 0 / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.5194, allocations: 3.938 kB / 1.373 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.949e-05/0.5194, allocations: 87.27 kB / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5194, allocations: 0 / 1.373 GB, free: 8.207 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002113/0.5197, allocations: 11.94 kB / 1.373 GB, free: 8.195 MB / 0.8698 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.0001735/0.5198, allocations: 103.8 kB / 1.373 GB, free: 8.082 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002097/0.5201, allocations: 51.95 kB / 1.373 GB, free: 8.031 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5201, allocations: 0 / 1.373 GB, free: 8.031 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.833e-05/0.5202, allocations: 31.98 kB / 1.373 GB, free: 8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.5204, allocations: 9.516 kB / 1.373 GB, free: 7.992 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002735/0.5207, allocations: 108.7 kB / 1.373 GB, free: 7.855 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.5209, allocations: 0.677 MB / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.796e-05/0.521, allocations: 7.984 kB / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.86e-05/0.521, allocations: 7.438 kB / 1.374 GB, free: 7.137 MB / 0.8698 GB Notification: Performance of SimCode: time 2e-07/0.521, allocations: 4.062 kB / 1.374 GB, free: 7.133 MB / 0.8698 GB Notification: Performance of Templates: time 0.002448/0.5234, allocations: 473.4 kB / 1.374 GB, free: 6.672 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches