Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_11_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.005449/0.005449, allocations: 97.25 kB / 15.73 MB, free: 6.012 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.001405/0.001405, allocations: 193.5 kB / 16.67 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.788/2.788, allocations: 469.8 MB / 0.7425 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 64.12 kB / 1.065 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8463/0.8482, allocations: 159.2 MB / 1.22 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001924/0.8502, allocations: 0.5758 MB / 1.221 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.8518, allocations: 1.11 MB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.867e-05/0.8519, allocations: 8 kB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.8519, allocations: 0 / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.8522, allocations: 19.92 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 4.879e-06/0.8522, allocations: 0 / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.264e-05/0.8523, allocations: 11.92 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.254e-05/0.8523, allocations: 0 / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 1.783e-05/0.8524, allocations: 4 kB / 1.222 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.366e-05/0.8524, allocations: 0 / 1.222 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.8524, allocations: 0 / 1.222 GB, free: 236 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.8525, allocations: 23.97 kB / 1.222 GB, free: 212 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.747e-06/0.8526, allocations: 3.938 kB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.263e-05/0.8526, allocations: 7.938 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.112e-05/0.8527, allocations: 11.98 kB / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.8527, allocations: 0 / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.923e-06/0.8527, allocations: 0 / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5e-06/0.8527, allocations: 0 / 1.222 GB, free: 188 kB / 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.0003792/0.8531, allocations: 322.2 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.8531, allocations: 8.031 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.8532, allocations: 38.69 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.8532, allocations: 0.9375 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.8533, allocations: 164.4 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.8533, allocations: 4.375 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.8534, allocations: 4.375 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.8535, allocations: 41.77 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.8535, allocations: 3.938 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.154e-06/0.8535, allocations: 0 / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.8535, allocations: 0 / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.893e-05/0.8535, allocations: 7.984 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.8537, allocations: 150.7 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.8539, allocations: 38.61 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.8539, allocations: 4.859 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001525/0.8541, allocations: 89.17 kB / 1.223 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.8541, allocations: 38.44 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.8541, allocations: 0 / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.004407/0.8586, allocations: 0.5793 MB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.8586, allocations: 51.41 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.791e-05/0.8587, allocations: 89.86 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.8587, allocations: 29.7 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.298e-05/0.8587, allocations: 80.14 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.8588, allocations: 15.89 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.8589, allocations: 17.72 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.859, allocations: 310.8 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006324/0.8597, allocations: 87.95 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006449/0.8603, allocations: 102.5 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.8616, allocations: 194.4 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.8616, allocations: 0 / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001326/0.8629, allocations: 213.5 kB / 1.225 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.8629, allocations: 4 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.863, allocations: 192 / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.863, allocations: 7.984 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.8634, allocations: 56 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.8634, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.8638, allocations: 39.98 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.8638, allocations: 4 kB / 1.225 GB, free: 13.17 MB / 0.9512 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.0001054/0.8639, allocations: 114.3 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.864, allocations: 3.938 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.8655, allocations: 241.1 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.8655, allocations: 432 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.8655, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.8655, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.8672, allocations: 470.2 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8672, allocations: 0 / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003994/0.8676, allocations: 55.95 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.8676, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.8676, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.8676, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.8676, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.869, allocations: 311.3 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.8691, allocations: 77.11 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.8691, allocations: 4 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.8695, allocations: 43.97 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.6e-05/0.8695, allocations: 4 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.8695, allocations: 192 / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.568e-05/0.8696, allocations: 75.28 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8696, allocations: 0 / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002559/0.8698, allocations: 11.94 kB / 1.226 GB, free: 11.68 MB / 0.9512 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.001742/0.8716, allocations: 0.8491 MB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001333/0.8729, allocations: 175.8 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.873, allocations: 8.188 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006352/0.8736, allocations: 87.95 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.8738, allocations: 4 kB / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.8751, allocations: 254.3 kB / 1.227 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.8755, allocations: 0.6729 MB / 1.228 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001866/0.8756, allocations: 35.97 kB / 1.228 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.114e-05/0.8757, allocations: 11.44 kB / 1.228 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of SimCode: time 3.2e-07/0.8757, allocations: 0 / 1.228 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.8973, allocations: 1.641 MB / 1.23 GB, free: 8 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/9.043, allocations: 4.062 kB / 1.23 GB, free: 7.996 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches