Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.542/2.542, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.91 kB / 0.8694 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6479/0.6493, allocations: 151.6 MB / 1.017 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001856/0.6512, allocations: 0.6036 MB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.6524, allocations: 1.104 MB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.098e-05/0.6525, allocations: 4 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.145e-05/0.6525, allocations: 0 / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.6528, allocations: 19.94 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 3.677e-06/0.6528, allocations: 0 / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.896e-05/0.6528, allocations: 11.92 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.092e-05/0.6529, allocations: 0 / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.379e-05/0.6529, allocations: 0 / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.99e-05/0.6529, allocations: 3.984 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 6.572e-06/0.6529, allocations: 4 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.916e-05/0.653, allocations: 23.92 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.822e-06/0.6531, allocations: 3.938 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.183e-05/0.6531, allocations: 4 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.956e-05/0.6531, allocations: 11.97 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.6532, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6532, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.349e-06/0.6532, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 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.000244/0.6534, allocations: 329.2 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.6535, allocations: 8.031 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.307e-05/0.6535, allocations: 30.75 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/0.6535, allocations: 0.9375 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.627e-05/0.6536, allocations: 168.4 kB / 1.02 GB, free: 16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.6537, allocations: 4.359 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.6537, allocations: 4.312 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.201e-05/0.6538, allocations: 41.77 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.6538, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.6538, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.6538, allocations: 0 / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.727e-05/0.6539, allocations: 7.984 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.654, allocations: 149.7 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.6542, allocations: 42.59 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.02e-05/0.6542, allocations: 12.8 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001352/0.6544, allocations: 85.19 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.6544, allocations: 34.5 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.6544, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.004609/0.659, allocations: 0.5659 MB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.6591, allocations: 51.41 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.434e-05/0.6591, allocations: 101.8 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.6592, allocations: 29.7 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.037e-05/0.6592, allocations: 80.14 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.124e-05/0.6593, allocations: 19.64 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/0.6593, allocations: 17.72 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.6594, allocations: 314.8 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000676/0.6601, allocations: 83.95 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006545/0.6608, allocations: 102.5 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.6621, allocations: 194.4 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6621, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001362/0.6634, allocations: 213.5 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.6635, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.6635, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.6635, allocations: 4 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/0.664, allocations: 52 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.664, allocations: 3.984 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.6644, allocations: 40.17 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.6644, allocations: 8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 0.0001001/0.6645, allocations: 109.8 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.6645, allocations: 11.94 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001461/0.666, allocations: 237.1 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.666, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.666, allocations: 3.938 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.666, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.6676, allocations: 454.4 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.6676, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.668, allocations: 51.97 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.6681, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.6681, allocations: 4 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6681, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6681, allocations: 0 / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.6695, allocations: 311.2 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.6695, allocations: 81.11 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.6696, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.67, allocations: 43.97 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.67, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.67, allocations: 4 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.516e-05/0.67, allocations: 79.28 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.67, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002677/0.6703, allocations: 8 kB / 1.023 GB, free: 12.12 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 (5): * Single equations (assignments): 5 * 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.00177/0.6721, allocations: 0.8492 MB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001441/0.6735, allocations: 184 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.6736, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006641/0.6742, allocations: 96.02 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.6745, allocations: 2.688 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.6762, allocations: 250.6 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.6765, allocations: 0.6729 MB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002475/0.6768, allocations: 31.98 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.248e-05/0.6769, allocations: 15.19 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of SimCode: time 1.653e-06/0.6769, allocations: 0 / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02055/0.6975, allocations: 1.596 MB / 1.027 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/7.748, allocations: 14.11 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:time,der(der_y),der(y),der2_y,der_y,y