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.007815/0.007815, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001746/0.001746, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.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.381/2.381, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.91 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2625, allocations: 140.4 MB / 1.088 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001578/0.2641, allocations: 0.5865 MB / 1.088 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.2655, allocations: 1.108 MB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.61e-05/0.2655, allocations: 0 / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.2656, allocations: 4 kB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.2658, allocations: 23.92 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 3.657e-06/0.2658, allocations: 0 / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.575e-05/0.2659, allocations: 3.984 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.2659, allocations: 4 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.613e-05/0.266, allocations: 0 / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.339e-05/0.266, allocations: 3.938 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.814e-06/0.266, allocations: 3.938 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.2661, allocations: 15.98 kB / 1.089 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.2661, allocations: 4 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.375e-05/0.2662, allocations: 3.984 kB / 1.089 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.895e-05/0.2662, allocations: 19.92 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2663, allocations: 0 / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2663, allocations: 0 / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.2663, allocations: 0 / 1.089 GB, free: 172 kB / 0.8419 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.0003075/0.2666, allocations: 323.6 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2666, allocations: 8.031 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.292e-05/0.2667, allocations: 34.69 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.205e-05/0.2667, allocations: 0.9375 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.859e-05/0.2668, allocations: 164.4 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2668, allocations: 8.375 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.2668, allocations: 384 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.928e-05/0.2669, allocations: 37.83 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.267, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.267, allocations: 3.984 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.267, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.688e-05/0.267, allocations: 7.938 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.2672, allocations: 153.7 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.2674, allocations: 34.58 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.366e-05/0.2674, allocations: 16.92 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.2676, allocations: 85.05 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.2676, allocations: 34.5 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.2676, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.004355/0.272, allocations: 0.5703 MB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.272, allocations: 59.34 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.288e-05/0.2721, allocations: 89.86 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.2721, allocations: 29.7 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.2721, allocations: 81.56 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.2722, allocations: 16.36 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/0.2722, allocations: 17.72 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2724, allocations: 318.8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006259/0.273, allocations: 79.95 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.2737, allocations: 114.6 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.2749, allocations: 194.4 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.2749, allocations: 0 / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001286/0.2762, allocations: 209.5 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2762, allocations: 7.984 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2763, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2763, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004196/0.2767, allocations: 48 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.2767, allocations: 4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.2771, allocations: 39.98 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.2771, allocations: 4 kB / 1.092 GB, free: 13.15 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 9.406e-05/0.2772, allocations: 126 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.2772, allocations: 3.938 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.2786, allocations: 237 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2787, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2787, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2787, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.2802, allocations: 466.3 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2802, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000418/0.2807, allocations: 47.97 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2807, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2807, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2807, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2807, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.282, allocations: 307.6 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.294e-05/0.2821, allocations: 81.11 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.2821, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/0.2825, allocations: 47.97 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.2825, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.2825, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.179e-05/0.2826, allocations: 83.16 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2826, allocations: 4 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002502/0.2828, allocations: 8 kB / 1.093 GB, free: 11.66 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.001653/0.2845, allocations: 0.8452 MB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001341/0.2859, allocations: 179.8 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2859, allocations: 192 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006288/0.2865, allocations: 95.94 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.2867, allocations: 0 / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.2881, allocations: 242.6 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2883, allocations: 0.6768 MB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001758/0.2885, allocations: 28 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.2886, allocations: 15.38 kB / 1.095 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2886, allocations: 0 / 1.095 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.3056, allocations: 1.64 MB / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.092/7.397, allocations: 6.344 kB / 1.097 GB, free: 7.977 MB / 0.8575 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