Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_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.007539/0.007539, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.002003/0.002003, allocations: 200.8 kB / 16.68 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 68.11 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2835, allocations: 162.2 MB / 1.242 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001697/0.2853, allocations: 0.5901 MB / 1.242 GB, free: 9.629 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.2868, allocations: 1.116 MB / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.295e-05/0.2868, allocations: 0 / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.389e-05/0.2869, allocations: 0 / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002038/0.2871, allocations: 11.94 kB / 1.243 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 3.226e-06/0.2871, allocations: 0 / 1.243 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 3.962e-05/0.2871, allocations: 11.98 kB / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.429e-05/0.2872, allocations: 0 / 1.243 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.514e-05/0.2872, allocations: 4 kB / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.22e-05/0.2872, allocations: 7.922 kB / 1.243 GB, free: 8.461 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.242e-06/0.2872, allocations: 4 kB / 1.243 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.2873, allocations: 15.98 kB / 1.243 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.209e-06/0.2874, allocations: 3.938 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.181e-05/0.2874, allocations: 0 / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.501e-05/0.2874, allocations: 19.91 kB / 1.243 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2875, allocations: 0 / 1.243 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2875, allocations: 4 kB / 1.243 GB, free: 8.414 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.2875, allocations: 4 kB / 1.243 GB, free: 8.41 MB / 0.9981 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.0002997/0.2878, allocations: 315.5 kB / 1.244 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2878, allocations: 8.031 kB / 1.244 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.2879, allocations: 30.75 kB / 1.244 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.44e-05/0.2879, allocations: 4.891 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.288, allocations: 172.3 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.288, allocations: 4.312 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.2881, allocations: 384 / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.585e-05/0.2882, allocations: 41.81 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2882, allocations: 0 / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-06/0.2882, allocations: 0 / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2882, allocations: 4 kB / 1.244 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.703e-05/0.2882, allocations: 15.92 kB / 1.244 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.2884, allocations: 141.7 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.2886, allocations: 34.61 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.274e-05/0.2886, allocations: 12.86 kB / 1.244 GB, free: 7.48 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.2888, allocations: 89.19 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.2888, allocations: 38.5 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.2888, allocations: 0 / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.004405/0.2932, allocations: 0.5676 MB / 1.245 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.2933, allocations: 55.41 kB / 1.245 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.394e-05/0.2933, allocations: 93.8 kB / 1.245 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2934, allocations: 29.7 kB / 1.245 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.994e-05/0.2934, allocations: 80.14 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.2934, allocations: 15.86 kB / 1.245 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.2935, allocations: 21.7 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2936, allocations: 314.8 kB / 1.245 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006283/0.2943, allocations: 83.95 kB / 1.245 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006395/0.2949, allocations: 106.5 kB / 1.245 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.2962, allocations: 182.4 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.2962, allocations: 0 / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001314/0.2975, allocations: 221.5 kB / 1.246 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2975, allocations: 9.25 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.2975, allocations: 0 / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.2976, allocations: 432 / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.298, allocations: 52 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.298, allocations: 0 / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.2984, allocations: 43.97 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.2984, allocations: 0 / 1.246 GB, free: 5.402 MB / 0.9981 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.747e-05/0.2985, allocations: 113.8 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.081e-05/0.2985, allocations: 3.938 kB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.3, allocations: 245 kB / 1.246 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3, allocations: 7.984 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3, allocations: 0 / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3, allocations: 0 / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.3016, allocations: 458.3 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3016, allocations: 4 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004063/0.302, allocations: 43.97 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.302, allocations: 7.938 kB / 1.247 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.302, allocations: 8.312 kB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3021, allocations: 0 / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3021, allocations: 4 kB / 1.247 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.3035, allocations: 303.4 kB / 1.247 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.3035, allocations: 77.11 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3036, allocations: 4 kB / 1.247 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.304, allocations: 39.97 kB / 1.247 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.304, allocations: 4 kB / 1.247 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.304, allocations: 4 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.21e-05/0.304, allocations: 75.28 kB / 1.247 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.304, allocations: 3.938 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002527/0.3043, allocations: 15.94 kB / 1.247 GB, free: 3.898 MB / 0.9981 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.001745/0.3061, allocations: 0.8451 MB / 1.248 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.3074, allocations: 183.9 kB / 1.248 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3074, allocations: 0 / 1.248 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006454/0.3081, allocations: 88.08 kB / 1.248 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.3083, allocations: 4 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.3096, allocations: 242.5 kB / 1.249 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.31, allocations: 0.6768 MB / 1.249 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001803/0.3102, allocations: 28.23 kB / 1.249 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.492e-05/0.3102, allocations: 15.44 kB / 1.249 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of SimCode: time 2.81e-07/0.3102, allocations: 3.938 kB / 1.249 GB, free: 1.73 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.3314, allocations: 1.636 MB / 1.251 GB, free: 236 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.451/7.782, allocations: 14.03 kB / 1.251 GB, free: 224 kB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches