Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 105.4 kB / 15.98 MB, free: 6.352 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.001445/0.001445, allocations: 195.6 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.798/2.798, allocations: 482.4 MB / 0.755 GB, free: 7.133 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 69.45 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7686/0.7706, allocations: 162.2 MB / 1.082 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002389/0.773, allocations: 1.508 MB / 1.084 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006327/0.7736, allocations: 459.9 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.252e-05/0.7737, allocations: 0.8125 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.7737, allocations: 0.7031 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.298e-05/0.7738, allocations: 1.281 kB / 1.084 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.774, allocations: 25.61 kB / 1.084 GB, free: 252 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.646e-05/0.774, allocations: 25.58 kB / 1.084 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.951e-05/0.7741, allocations: 8.125 kB / 1.084 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.116e-05/0.7742, allocations: 9.344 kB / 1.084 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.475e-05/0.7742, allocations: 11.84 kB / 1.084 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.7742, allocations: 5.219 kB / 1.084 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.7743, allocations: 17.83 kB / 1.084 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.7743, allocations: 9.984 kB / 1.084 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.7743, allocations: 12.14 kB / 1.084 GB, free: 204 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.436e-05/0.7744, allocations: 25.78 kB / 1.084 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.7744, allocations: 0.5938 kB / 1.084 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7744, allocations: 0 / 1.084 GB, free: 192 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.7745, allocations: 3.938 kB / 1.084 GB, free: 188 kB / 0.8262 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.0004212/0.7749, allocations: 340.4 kB / 1.085 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.7749, allocations: 13.03 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.67e-05/0.775, allocations: 3.375 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.7751, allocations: 171.1 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.7751, allocations: 2.25 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.7752, allocations: 5.906 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.7753, allocations: 55.77 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.7754, allocations: 0.7031 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.7754, allocations: 0.6562 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.7754, allocations: 1.062 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.7755, allocations: 32.2 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003461/0.7759, allocations: 259.9 kB / 1.085 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.776, allocations: 37.14 kB / 1.085 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/0.7761, allocations: 23.44 kB / 1.085 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.7763, allocations: 82.41 kB / 1.085 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.7763, allocations: 32.61 kB / 1.085 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.7763, allocations: 4 kB / 1.085 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003488/0.7767, allocations: 84.06 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.7767, allocations: 53.77 kB / 1.086 GB, free: 15 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.7768, allocations: 101.8 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.7769, allocations: 26.64 kB / 1.086 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.7769, allocations: 89.84 kB / 1.086 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.777, allocations: 13.69 kB / 1.086 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.777, allocations: 12.89 kB / 1.086 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.7772, allocations: 316.9 kB / 1.086 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.284e-05/0.7773, allocations: 14.69 kB / 1.086 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.7773, allocations: 22.8 kB / 1.086 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.7775, allocations: 45.56 kB / 1.086 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.7775, allocations: 0 / 1.086 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001997/0.7777, allocations: 66.92 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.7777, allocations: 6.453 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.7778, allocations: 0 / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.7778, allocations: 0 / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.47e-05/0.7779, allocations: 9.922 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.7779, allocations: 4.734 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.715e-05/0.7779, allocations: 5.516 kB / 1.086 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.7779, allocations: 1.406 kB / 1.086 GB, free: 14.37 MB / 0.8419 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 8.219e-05/0.778, allocations: 116.2 kB / 1.086 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.7781, allocations: 5.562 kB / 1.086 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002263/0.7783, allocations: 72 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.7783, allocations: 4.969 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7783, allocations: 0 / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.7783, allocations: 0.875 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.7785, allocations: 168.6 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7785, allocations: 0.7969 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.739e-05/0.7786, allocations: 9.016 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.7786, allocations: 0 / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.7786, allocations: 2.328 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7786, allocations: 0 / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.7786, allocations: 0 / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.7788, allocations: 163.7 kB / 1.087 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.7789, allocations: 77.95 kB / 1.087 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.7789, allocations: 6.125 kB / 1.087 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.543e-05/0.779, allocations: 5.016 kB / 1.087 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.779, allocations: 7.938 kB / 1.087 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.779, allocations: 0 / 1.087 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.943e-05/0.7791, allocations: 88.7 kB / 1.087 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7791, allocations: 3.938 kB / 1.087 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002239/0.7793, allocations: 11.19 kB / 1.087 GB, free: 13.66 MB / 0.8419 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.0001598/0.7795, allocations: 99.27 kB / 1.087 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.7797, allocations: 40.09 kB / 1.087 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.7797, allocations: 0 / 1.087 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.338e-05/0.7798, allocations: 24.19 kB / 1.087 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.7801, allocations: 12.12 kB / 1.087 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/0.7804, allocations: 144.3 kB / 1.087 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.7808, allocations: 0.6755 MB / 1.088 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.7808, allocations: 10 kB / 1.088 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.7808, allocations: 4.062 kB / 1.088 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of Templates: time 0.002312/0.7831, allocations: 0.6439 MB / 1.089 GB, free: 12.65 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches