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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006676/0.006676, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001633/0.001633, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.75/2.75, allocations: 469.4 MB / 0.7422 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 63.89 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3565, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002429/0.359, allocations: 0.5875 MB / 1.22 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001791/0.3608, allocations: 1.11 MB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.569e-05/0.3609, allocations: 0 / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.791e-05/0.3609, allocations: 0 / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003009/0.3612, allocations: 19.92 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.428e-06/0.3613, allocations: 0 / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.024e-05/0.3613, allocations: 11.92 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.025e-05/0.3614, allocations: 4 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.867e-05/0.3614, allocations: 0 / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.413e-05/0.3614, allocations: 0 / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.3614, allocations: 0 / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.3616, allocations: 23.97 kB / 1.222 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.3616, allocations: 11.88 kB / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.483e-05/0.3616, allocations: 0 / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 9.083e-05/0.3617, allocations: 7.984 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3617, allocations: 0 / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3617, allocations: 0 / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.3617, allocations: 4 kB / 1.222 GB, free: 12.84 MB / 0.9825 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.0003185/0.3621, allocations: 327.5 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3621, allocations: 8.031 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.3622, allocations: 30.75 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.503e-05/0.3622, allocations: 0.9375 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.3623, allocations: 160.4 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.3623, allocations: 12.3 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.3624, allocations: 4.359 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.888e-05/0.3625, allocations: 41.77 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3625, allocations: 4 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.3625, allocations: 0 / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3625, allocations: 0 / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.3626, allocations: 7.984 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.3627, allocations: 149.7 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.3629, allocations: 34.61 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.507e-05/0.3629, allocations: 12.8 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/0.3631, allocations: 93.17 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.3632, allocations: 38.44 kB / 1.222 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.3632, allocations: 0 / 1.222 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.004388/0.3676, allocations: 0.5715 MB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.3676, allocations: 51.41 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.687e-05/0.3677, allocations: 93.86 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.3677, allocations: 29.7 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.122e-05/0.3677, allocations: 84.14 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.3678, allocations: 11.89 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.3678, allocations: 17.72 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.368, allocations: 314.8 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006294/0.3686, allocations: 83.95 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.3692, allocations: 110.6 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.3704, allocations: 190.4 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3705, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001314/0.3718, allocations: 213.5 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3718, allocations: 4 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.3718, allocations: 4 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3718, allocations: 0 / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.3723, allocations: 52 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.3723, allocations: 7.984 kB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.3726, allocations: 35.98 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.3727, allocations: 4 kB / 1.224 GB, free: 9.812 MB / 0.9825 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.0001864/0.3729, allocations: 109.8 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/0.3729, allocations: 11.88 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.3743, allocations: 237.1 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.3744, allocations: 3.938 kB / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3744, allocations: 4 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3744, allocations: 0 / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.3759, allocations: 458.3 kB / 1.225 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.376, allocations: 4 kB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.3763, allocations: 44.39 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3764, allocations: 4 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3764, allocations: 4 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3764, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3764, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.3777, allocations: 303.6 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.3778, allocations: 93.09 kB / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.3778, allocations: 0 / 1.225 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.3782, allocations: 43.97 kB / 1.225 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.3782, allocations: 4 kB / 1.225 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.3782, allocations: 3.938 kB / 1.225 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.307e-05/0.3783, allocations: 75.28 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3783, allocations: 0 / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002594/0.3785, allocations: 15.94 kB / 1.226 GB, free: 8.32 MB / 0.9825 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.001657/0.3802, allocations: 0.8452 MB / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001282/0.3815, allocations: 175.9 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3815, allocations: 4 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.3821, allocations: 92.08 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.3824, allocations: 5.484 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.3838, allocations: 258.3 kB / 1.227 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.384, allocations: 0.6729 MB / 1.228 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001891/0.3842, allocations: 28.23 kB / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.256e-05/0.3843, allocations: 15.44 kB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of SimCode: time 6.41e-07/0.3843, allocations: 0 / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.4042, allocations: 1.642 MB / 1.229 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.646/8.05, allocations: 9.844 kB / 1.229 GB, free: 4.633 MB / 0.9825 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 50 --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