Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",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.005075/0.005075, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001212/0.001212, allocations: 192 kB / 16.67 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.318/2.318, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.95 kB / 0.9504 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2771, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002393/0.2795, allocations: 1.431 MB / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007039/0.2802, allocations: 473.2 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.078e-05/0.2803, allocations: 0 / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.2803, allocations: 0 / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.284e-05/0.2804, allocations: 11.94 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2806, allocations: 27.84 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.847e-05/0.2807, allocations: 23.92 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 7.752e-05/0.2808, allocations: 4 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.984e-05/0.2808, allocations: 15.92 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.528e-05/0.2809, allocations: 11.98 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.2809, allocations: 3.938 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.043e-05/0.281, allocations: 24 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.281, allocations: 7.906 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.383e-05/0.281, allocations: 7.938 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2811, allocations: 40.11 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2811, allocations: 0 / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2811, allocations: 0 / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2811, allocations: 0 / 1.089 GB, free: 15.93 MB / 0.8575 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.0003944/0.2815, allocations: 343.4 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.2816, allocations: 8.031 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.998e-05/0.2816, allocations: 30.75 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.374e-05/0.2816, allocations: 4.938 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.2818, allocations: 164.3 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.2818, allocations: 8.375 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.2818, allocations: 4.375 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.282, allocations: 57.73 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.282, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-06/0.282, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.282, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.2822, allocations: 35.95 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002827/0.2825, allocations: 256.9 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.2826, allocations: 34.56 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/0.2827, allocations: 24.84 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.2828, allocations: 85.09 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2828, allocations: 34.56 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2828, allocations: 4 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003427/0.2832, allocations: 77.64 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.2832, allocations: 55.41 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.875e-05/0.2833, allocations: 98.05 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.2833, allocations: 25.7 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.2834, allocations: 92.25 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.2834, allocations: 3.953 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.2834, allocations: 13.72 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.2835, allocations: 318.8 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.23e-05/0.2836, allocations: 19.92 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.445e-05/0.2837, allocations: 20.03 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2838, allocations: 40.89 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2839, allocations: 3.938 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001925/0.2841, allocations: 73.59 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2841, allocations: 4 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.2841, allocations: 0 / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2841, allocations: 4 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.124e-05/0.2842, allocations: 12.02 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.2842, allocations: 0 / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.858e-05/0.2843, allocations: 15.83 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-06/0.2843, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 6.993e-05/0.2843, allocations: 117.8 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.2844, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00022/0.2846, allocations: 72.78 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2846, allocations: 4.031 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2846, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2846, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.2848, allocations: 161.6 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2848, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.03e-05/0.2849, allocations: 11.98 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2849, allocations: 0 / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-06/0.2849, allocations: 0 / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2849, allocations: 0 / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2849, allocations: 3.984 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.2851, allocations: 167.4 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2852, allocations: 89.05 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.2852, allocations: 0 / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.783e-05/0.2853, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.966e-05/0.2853, allocations: 3.984 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.2853, allocations: 8.031 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.021e-05/0.2854, allocations: 83.28 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2854, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002246/0.2856, allocations: 8 kB / 1.092 GB, free: 12.93 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 (2): * Single equations (assignments): 2 * 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.0004953/0.2861, allocations: 0.7007 MB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002008/0.2863, allocations: 35.95 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2863, allocations: 0 / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.46e-05/0.2864, allocations: 19.98 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.2867, allocations: 7.984 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003638/0.2871, allocations: 155.1 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.2873, allocations: 0.6768 MB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.529e-05/0.2873, allocations: 3.984 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.512e-05/0.2874, allocations: 7.438 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2874, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.3032, allocations: 1.413 MB / 1.095 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.25/7.553, allocations: 17.97 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches