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.001516/0.001516, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.679/2.679, allocations: 469.8 MB / 0.7424 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 64.2 kB / 0.9087 GB, free: 34.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3392, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00196/0.3412, allocations: 0.5943 MB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.3426, allocations: 1.11 MB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.3427, allocations: 0 / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.528e-05/0.3427, allocations: 0 / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.343, allocations: 19.91 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.551e-06/0.343, allocations: 0 / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.486e-05/0.3431, allocations: 3.938 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.735e-05/0.3431, allocations: 4 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.546e-05/0.3432, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.535e-05/0.3432, allocations: 4 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.356e-06/0.3432, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.3433, allocations: 27.91 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.682e-06/0.3433, allocations: 7.875 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.3434, allocations: 4 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.021e-05/0.3434, allocations: 11.98 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3435, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3435, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.448e-06/0.3435, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 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.0003195/0.3438, allocations: 319.6 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3438, allocations: 16.03 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.3439, allocations: 30.75 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.49e-05/0.3439, allocations: 0.9375 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.344, allocations: 168.3 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.3441, allocations: 384 / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.3441, allocations: 8.375 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.418e-05/0.3442, allocations: 37.77 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3442, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.583e-06/0.3442, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3442, allocations: 7.984 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.841e-05/0.3443, allocations: 11.98 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001705/0.3444, allocations: 153.7 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/0.3446, allocations: 30.58 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.987e-05/0.3447, allocations: 16.88 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001766/0.3449, allocations: 81.09 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.345, allocations: 42.5 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.345, allocations: 4 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.00435/0.3493, allocations: 0.5678 MB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.3494, allocations: 55.41 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.48e-05/0.3494, allocations: 89.86 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.3495, allocations: 25.7 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.3495, allocations: 80.14 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.3496, allocations: 15.8 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.937e-05/0.3496, allocations: 17.72 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3498, allocations: 318.8 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006249/0.3504, allocations: 83.94 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/0.3511, allocations: 102.5 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.3524, allocations: 190.4 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3524, allocations: 0 / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001295/0.3537, allocations: 213.5 kB / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3537, allocations: 13.39 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3537, allocations: 0 / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3537, allocations: 0 / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004111/0.3542, allocations: 52 kB / 1.068 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3542, allocations: 0 / 1.068 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003625/0.3545, allocations: 43.92 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.3546, allocations: 0 / 1.069 GB, free: 9.344 MB / 0.8262 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.0001112/0.3547, allocations: 117.8 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.3547, allocations: 11.92 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.3561, allocations: 233 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3562, allocations: 4 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3562, allocations: 0 / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3562, allocations: 0 / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.3578, allocations: 462.3 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3578, allocations: 320 / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004042/0.3582, allocations: 47.97 kB / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.3582, allocations: 4 kB / 1.069 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.3582, allocations: 4 kB / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3583, allocations: 0 / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3583, allocations: 0 / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.3596, allocations: 311.3 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.3597, allocations: 81.11 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.3597, allocations: 0 / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.3601, allocations: 43.97 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.3601, allocations: 0 / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.3601, allocations: 4 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.3602, allocations: 75.28 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.3602, allocations: 0 / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002538/0.3604, allocations: 16 kB / 1.07 GB, free: 7.855 MB / 0.8262 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.001736/0.3622, allocations: 0.8417 MB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00131/0.3635, allocations: 183.9 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3635, allocations: 0 / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.3641, allocations: 96 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.3644, allocations: 0 / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3657, allocations: 250.4 kB / 1.071 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.3661, allocations: 0.6768 MB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000221/0.3663, allocations: 24 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.21e-05/0.3664, allocations: 12.19 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.3664, allocations: 4 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02641/0.3928, allocations: 1.613 MB / 1.073 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.59, allocations: 8.438 kB / 1.073 GB, free: 4.184 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:der(der_y),der(y),der2_y,der_y,time,y