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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001375/0.001375, allocations: 104.1 kB / 16.41 MB, free: 6.516 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: 189.5 kB / 17.34 MB, free: 5.742 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.644/2.644, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 68.05 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8762/0.8774, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002757/0.8802, allocations: 1.441 MB / 1.21 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008968/0.8812, allocations: 467 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.533e-05/0.8812, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.52e-05/0.8813, allocations: 7.875 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.807e-05/0.8813, allocations: 3.938 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.8816, allocations: 23.98 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.017e-05/0.8817, allocations: 23.91 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.8818, allocations: 8 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.88e-05/0.8819, allocations: 15.92 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.482e-05/0.8819, allocations: 11.92 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.882, allocations: 4 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.424e-05/0.882, allocations: 23.98 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.8821, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.8821, allocations: 11.94 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.8822, allocations: 35.88 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.8822, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8822, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.8822, allocations: 0 / 1.21 GB, free: 11.55 MB / 0.9356 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.0005037/0.8828, allocations: 351.3 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.8828, allocations: 8.031 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.8828, allocations: 0.9375 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.883, allocations: 172.2 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.883, allocations: 384 / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.883, allocations: 384 / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.8832, allocations: 57.92 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.8832, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.8832, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.8833, allocations: 4 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.8834, allocations: 35.95 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003646/0.8838, allocations: 248.9 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.884, allocations: 42.53 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.914e-05/0.8841, allocations: 24.91 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000145/0.8842, allocations: 85.09 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.8842, allocations: 30.56 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.8843, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003558/0.8846, allocations: 81.64 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.8847, allocations: 55.34 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.668e-05/0.8848, allocations: 106 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.8848, allocations: 25.7 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/0.8848, allocations: 84.14 kB / 1.212 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.8849, allocations: 13.72 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.8849, allocations: 9.719 kB / 1.212 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.8851, allocations: 314.8 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.213e-05/0.8851, allocations: 15.98 kB / 1.212 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.53e-05/0.8852, allocations: 23.97 kB / 1.212 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.8854, allocations: 44.95 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8854, allocations: 0 / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000194/0.8856, allocations: 73.59 kB / 1.212 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.8856, allocations: 4 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.8856, allocations: 4.094 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.8857, allocations: 0 / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.8858, allocations: 11.98 kB / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.8858, allocations: 0 / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.505e-05/0.8858, allocations: 4 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.8858, allocations: 0 / 1.212 GB, free: 9.418 MB / 0.9356 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 9.394e-05/0.8859, allocations: 117.8 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.886, allocations: 3.906 kB / 1.212 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.8862, allocations: 76.75 kB / 1.212 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.8862, allocations: 4 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.8862, allocations: 3.938 kB / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.8862, allocations: 0 / 1.212 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.8864, allocations: 165.6 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.8864, allocations: 0 / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.979e-05/0.8865, allocations: 15.92 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.8865, allocations: 0 / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.8865, allocations: 4.031 kB / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8865, allocations: 0 / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8865, allocations: 0 / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.8868, allocations: 159.5 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.8868, allocations: 81.11 kB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.8868, allocations: 7.984 kB / 1.213 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.141e-05/0.8869, allocations: 8.031 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.887, allocations: 0 / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.887, allocations: 3.984 kB / 1.213 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.148e-05/0.887, allocations: 79.28 kB / 1.213 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.01e-07/0.887, allocations: 0 / 1.213 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002202/0.8873, allocations: 16 kB / 1.213 GB, free: 8.586 MB / 0.9356 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.0001731/0.8874, allocations: 99.19 kB / 1.213 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000226/0.8877, allocations: 43.95 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.8877, allocations: 0 / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.563e-05/0.8878, allocations: 19.98 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.8881, allocations: 7.875 kB / 1.213 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.8884, allocations: 139.1 kB / 1.213 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.8888, allocations: 0.6846 MB / 1.214 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.8888, allocations: 7.438 kB / 1.214 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.8888, allocations: 0 / 1.214 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of Templates: time 0.002309/0.8911, allocations: 0.6564 MB / 1.215 GB, free: 6.863 MB / 0.9356 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=480 -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