Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_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.0008136/0.0008139, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006379/0.006379, allocations: 169 kB / 16.26 MB, free: 6.613 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.396/1.396, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.709/2.709, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003412, allocations: 15.98 kB / 0.8728 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7511/0.7514, allocations: 153.8 MB / 1.023 GB, free: 16 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001869/0.7534, allocations: 1.164 MB / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009174/0.7543, allocations: 455.8 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.597e-05/0.7544, allocations: 0 / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.7544, allocations: 4 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.546e-05/0.7545, allocations: 7.938 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.7547, allocations: 19.97 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.922e-05/0.7548, allocations: 23.92 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.431e-05/0.7549, allocations: 4 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.944e-05/0.7549, allocations: 7.938 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.755, allocations: 11.98 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.755, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.127e-05/0.7551, allocations: 23.92 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.618e-05/0.7551, allocations: 7.938 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.8e-05/0.7552, allocations: 41.61 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.7553, allocations: 27.97 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.7553, allocations: 0 / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7553, allocations: 0 / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.7553, allocations: 0 / 1.025 GB, free: 14.19 MB / 0.7794 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.0004759/0.7558, allocations: 337.6 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.7559, allocations: 12.03 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.244e-05/0.7559, allocations: 8.938 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.7561, allocations: 172.2 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.7561, allocations: 4.312 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.7561, allocations: 4.375 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.7563, allocations: 57.98 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.7563, allocations: 0 / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.7563, allocations: 3.938 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.7564, allocations: 4 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002042/0.7566, allocations: 43.91 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.7569, allocations: 252.9 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.7571, allocations: 42.56 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.945e-05/0.7572, allocations: 36.89 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.7573, allocations: 77.11 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.7574, allocations: 42.5 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.7574, allocations: 0 / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003786/0.7578, allocations: 97.73 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.7578, allocations: 51.41 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.927e-05/0.7579, allocations: 105.8 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.7579, allocations: 25.7 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.972e-05/0.758, allocations: 80.14 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.758, allocations: 11.91 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.758, allocations: 9.719 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7582, allocations: 314.8 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.479e-05/0.7583, allocations: 28.02 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.03e-05/0.7583, allocations: 15.98 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.7585, allocations: 56.77 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.7585, allocations: 4 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002252/0.7588, allocations: 85.56 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.7588, allocations: 4 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.7588, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.7588, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.839e-05/0.7589, allocations: 11.98 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.7589, allocations: 7.984 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.97e-05/0.759, allocations: 7.984 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.759, allocations: 0 / 1.027 GB, free: 11.97 MB / 0.7794 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 7.35e-05/0.7591, allocations: 117.8 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.775e-05/0.7591, allocations: 3.984 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/0.7594, allocations: 88.66 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.7594, allocations: 0 / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.7594, allocations: 4.031 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.7594, allocations: 0 / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.7596, allocations: 169.8 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.7596, allocations: 4 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.115e-05/0.7596, allocations: 11.98 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.7596, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.7597, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.7597, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7597, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.7599, allocations: 183.4 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.76, allocations: 81.02 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.76, allocations: 3.938 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.724e-05/0.7601, allocations: 16.02 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.7601, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.7601, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.903e-05/0.7602, allocations: 83.28 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7602, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000225/0.7604, allocations: 8 kB / 1.027 GB, free: 11.11 MB / 0.7794 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.0001443/0.7605, allocations: 107.2 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002137/0.7608, allocations: 43.97 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7608, allocations: 0 / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.974e-05/0.7609, allocations: 39.97 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.7612, allocations: 3.938 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002678/0.7614, allocations: 120.6 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.7617, allocations: 0.677 MB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.353e-05/0.7617, allocations: 0 / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.827e-05/0.7618, allocations: 7.438 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.7618, allocations: 4.062 kB / 1.028 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of Templates: time 0.002578/0.7644, allocations: 492 kB / 1.029 GB, free: 9.582 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches