Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_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.007364/0.007365, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001827/0.001827, allocations: 201.3 kB / 16.68 MB, free: 5.93 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.266/2.266, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 67.91 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7778/0.7792, allocations: 140.4 MB / 1.088 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001516/0.7808, allocations: 0.5828 MB / 1.088 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.782, allocations: 1.121 MB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.52e-05/0.7821, allocations: 0 / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.469e-05/0.7821, allocations: 1.125 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.7824, allocations: 13.77 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.007e-06/0.7824, allocations: 0 / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.632e-05/0.7825, allocations: 2.188 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.96e-05/0.7825, allocations: 6.594 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.781e-05/0.7825, allocations: 9 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.545e-05/0.7826, allocations: 5.797 kB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.7826, allocations: 0 / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.7827, allocations: 20.83 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.913e-06/0.7827, allocations: 1.703 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.7827, allocations: 1.094 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.594e-05/0.7828, allocations: 19.92 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.7828, allocations: 1.094 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.764e-06/0.7828, allocations: 0 / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.7829, allocations: 0 / 1.089 GB, free: 4.055 MB / 0.8575 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.0002306/0.7831, allocations: 322.5 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.7831, allocations: 9.891 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.377e-05/0.7832, allocations: 31.91 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.7832, allocations: 5.594 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.119e-05/0.7833, allocations: 162.1 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.7833, allocations: 5.938 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.7833, allocations: 1.469 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.13e-05/0.7834, allocations: 36.56 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.7834, allocations: 0.6562 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.7835, allocations: 9.094 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.7835, allocations: 0 / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.391e-05/0.7835, allocations: 10.5 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001167/0.7836, allocations: 155.4 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.7838, allocations: 29.88 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.7839, allocations: 11.66 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.784, allocations: 83.94 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.784, allocations: 38.5 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.7841, allocations: 0.9688 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.004422/0.7885, allocations: 0.5718 MB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.7885, allocations: 53.28 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.375e-05/0.7885, allocations: 90.61 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.7886, allocations: 25.7 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.587e-05/0.7886, allocations: 85.27 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.7886, allocations: 15.25 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.7887, allocations: 19.73 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.327e-05/0.7888, allocations: 317.3 kB / 1.091 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.7894, allocations: 87.62 kB / 1.091 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.7901, allocations: 100.1 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.7913, allocations: 186.5 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.7913, allocations: 1.25 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001331/0.7927, allocations: 220.7 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.7927, allocations: 5.719 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.7927, allocations: 4.844 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.7927, allocations: 0.9375 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.7932, allocations: 50.95 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.7932, allocations: 1.156 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.7936, allocations: 40.16 kB / 1.092 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.7936, allocations: 3.344 kB / 1.092 GB, free: 2.164 MB / 0.8575 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 6.523e-05/0.7936, allocations: 112.5 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/0.7937, allocations: 9.828 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.7951, allocations: 239.3 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.7951, allocations: 4.844 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.7952, allocations: 0.5625 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.7952, allocations: 0.9062 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.7967, allocations: 451 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.7967, allocations: 0 / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.7972, allocations: 53.08 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.7972, allocations: 4.547 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.7972, allocations: 9.734 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7972, allocations: 0.6875 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.7972, allocations: 0.6875 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.7986, allocations: 302.4 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.159e-05/0.7986, allocations: 82.16 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.7986, allocations: 1.516 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.7991, allocations: 40.23 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.7991, allocations: 2.328 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.7991, allocations: 10.17 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.877e-05/0.7991, allocations: 75.94 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7991, allocations: 0 / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002694/0.7994, allocations: 14.84 kB / 1.093 GB, free: 1.285 MB / 0.8575 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.001658/0.8011, allocations: 0.8463 MB / 1.094 GB, free: 16.59 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001357/0.8024, allocations: 183.8 kB / 1.094 GB, free: 16.57 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8025, allocations: 4 kB / 1.094 GB, free: 16.56 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006573/0.8031, allocations: 90.55 kB / 1.094 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.8034, allocations: 5.812 kB / 1.094 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.8047, allocations: 245 kB / 1.095 GB, free: 16.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.8051, allocations: 0.6757 MB / 1.095 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000175/0.8053, allocations: 28.97 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.578e-05/0.8054, allocations: 15.36 kB / 1.095 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.8054, allocations: 5.094 kB / 1.095 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.8234, allocations: 1.637 MB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/8.319, allocations: 5.125 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches