Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_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.006551/0.006551, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001201/0.001201, allocations: 189.4 kB / 16.67 MB, free: 5.875 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.592/2.592, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 68.12 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9007/0.9021, allocations: 151.6 MB / 1.166 GB, free: 3.762 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001665/0.9038, allocations: 0.5909 MB / 1.167 GB, free: 3.176 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.9052, allocations: 1.112 MB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.491e-05/0.9052, allocations: 0 / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.9053, allocations: 0 / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002319/0.9055, allocations: 23.91 kB / 1.168 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 5.48e-06/0.9055, allocations: 0 / 1.168 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 3.79e-05/0.9056, allocations: 7.938 kB / 1.168 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.9056, allocations: 0 / 1.168 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.426e-05/0.9056, allocations: 4 kB / 1.168 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.305e-05/0.9057, allocations: 7.938 kB / 1.168 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.243e-06/0.9057, allocations: 0 / 1.168 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.9058, allocations: 23.97 kB / 1.168 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.033e-06/0.9058, allocations: 3.984 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.636e-05/0.9058, allocations: 3.938 kB / 1.168 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 8.015e-05/0.9059, allocations: 15.94 kB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.9059, allocations: 3.984 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.305e-06/0.9059, allocations: 0 / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.9059, allocations: 0 / 1.168 GB, free: 1.957 MB / 0.8887 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.0002677/0.9062, allocations: 311.2 kB / 1.168 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.9063, allocations: 8.922 kB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.9063, allocations: 38.75 kB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.9063, allocations: 8.875 kB / 1.168 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.405e-05/0.9064, allocations: 164.4 kB / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.9064, allocations: 384 / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.9065, allocations: 384 / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.034e-05/0.9066, allocations: 37.81 kB / 1.168 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.9066, allocations: 7.938 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-06/0.9066, allocations: 0 / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.9066, allocations: 0 / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.153e-05/0.9066, allocations: 11.94 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.9068, allocations: 149.7 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.907, allocations: 34.52 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.358e-05/0.907, allocations: 16.94 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.9071, allocations: 85.09 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.9072, allocations: 34.5 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.9072, allocations: 0 / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.004229/0.9114, allocations: 0.5796 MB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.9115, allocations: 51.41 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.643e-05/0.9115, allocations: 89.86 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.9116, allocations: 29.64 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.481e-05/0.9116, allocations: 80.14 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 6.708e-05/0.9117, allocations: 23.92 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.9117, allocations: 13.72 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.9118, allocations: 322.8 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006218/0.9125, allocations: 79.95 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.9131, allocations: 102.5 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.9143, allocations: 190.4 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.9143, allocations: 0 / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001278/0.9156, allocations: 221.5 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.9156, allocations: 4 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.9156, allocations: 0 / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.9156, allocations: 4.031 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.9161, allocations: 47.97 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.9161, allocations: 4 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.9164, allocations: 35.98 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.9165, allocations: 4 kB / 1.171 GB, free: 14.95 MB / 0.9044 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 8.144e-05/0.9166, allocations: 117.8 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.9166, allocations: 3.938 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.918, allocations: 237.2 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.918, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.918, allocations: 8.062 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.918, allocations: 0 / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.9196, allocations: 454.4 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.9196, allocations: 3.938 kB / 1.171 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.92, allocations: 51.97 kB / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.92, allocations: 0 / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.92, allocations: 4 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.92, allocations: 3.938 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.92, allocations: 3.938 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.9213, allocations: 307.4 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.9214, allocations: 77.11 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.9214, allocations: 3.984 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.9218, allocations: 39.98 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.19e-05/0.9218, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.9218, allocations: 4 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.861e-05/0.9218, allocations: 79.28 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.494e-06/0.9219, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002609/0.9221, allocations: 23.86 kB / 1.172 GB, free: 13.44 MB / 0.9044 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.00171/0.9238, allocations: 0.8374 MB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001293/0.9251, allocations: 179.9 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.9252, allocations: 4 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.9258, allocations: 88.06 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.926, allocations: 12 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.9273, allocations: 230.5 kB / 1.173 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.9276, allocations: 0.6768 MB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001903/0.9278, allocations: 28 kB / 1.174 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.828e-05/0.9278, allocations: 15.44 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of SimCode: time 1.663e-06/0.9278, allocations: 0 / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.9457, allocations: 1.651 MB / 1.176 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.001/8.947, allocations: 17.56 kB / 1.176 GB, free: 9.766 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches