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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.007764/0.007764, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.437/1.437, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.791/2.791, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003569, allocations: 11.28 kB / 0.9027 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3346, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0007417/0.3353, allocations: 326.9 kB / 1.059 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.3368, allocations: 1.112 MB / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.205e-05/0.3368, allocations: 0 / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/0.3369, allocations: 0 / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.3371, allocations: 15.98 kB / 1.06 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.166e-06/0.3371, allocations: 0 / 1.06 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.51e-05/0.3371, allocations: 7.938 kB / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.3372, allocations: 0 / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.3372, allocations: 0 / 1.06 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.582e-05/0.3372, allocations: 7.984 kB / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.893e-06/0.3372, allocations: 0 / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.3373, allocations: 27.97 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.959e-06/0.3374, allocations: 7.875 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.3374, allocations: 33.64 kB / 1.06 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.705e-05/0.3375, allocations: 7.984 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3375, allocations: 0 / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.654e-06/0.3375, allocations: 0 / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.3375, allocations: 0 / 1.06 GB, free: 3.422 MB / 0.8106 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.0002385/0.3377, allocations: 311.6 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3378, allocations: 20.02 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.3378, allocations: 0.9375 kB / 1.06 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.581e-05/0.3379, allocations: 172.4 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3379, allocations: 384 / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.338, allocations: 384 / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.105e-05/0.3381, allocations: 41.94 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.3381, allocations: 4 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.3381, allocations: 7.938 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3381, allocations: 0 / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.737e-05/0.3381, allocations: 8 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.3383, allocations: 145.7 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.3385, allocations: 38.61 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.293e-05/0.3385, allocations: 12.86 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/0.3387, allocations: 85.09 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.3387, allocations: 38.44 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3387, allocations: 0 / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004505/0.3432, allocations: 0.5718 MB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.3433, allocations: 59.41 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.504e-05/0.3433, allocations: 89.86 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.3433, allocations: 29.69 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.262e-05/0.3434, allocations: 80.14 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/0.3434, allocations: 11.81 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.3435, allocations: 13.72 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.3436, allocations: 310.8 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000631/0.3442, allocations: 87.95 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006329/0.3448, allocations: 102.5 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.3461, allocations: 190.4 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.3461, allocations: 0 / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001343/0.3475, allocations: 213.5 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3475, allocations: 8 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3475, allocations: 0 / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3475, allocations: 0 / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004316/0.348, allocations: 56 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.348, allocations: 3.984 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.3483, allocations: 39.98 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.3484, allocations: 0 / 1.063 GB, free: 468 kB / 0.8106 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.437e-05/0.3485, allocations: 113.8 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3485, allocations: 3.938 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.3499, allocations: 245 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3499, allocations: 4 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.35, allocations: 0 / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.35, allocations: 4.359 kB / 1.063 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.3516, allocations: 458.3 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3516, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.352, allocations: 47.97 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.352, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.352, allocations: 8.312 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3521, allocations: 0 / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3521, allocations: 4 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.3534, allocations: 303.4 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.3535, allocations: 81.11 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.3535, allocations: 4 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.3539, allocations: 39.97 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.613e-05/0.3539, allocations: 7.938 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.3539, allocations: 0 / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.531e-05/0.354, allocations: 83.31 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.354, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002563/0.3542, allocations: 12 kB / 1.064 GB, free: 14.96 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.0001755/0.3544, allocations: 107.2 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001343/0.3558, allocations: 179.8 kB / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3558, allocations: 0 / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.3564, allocations: 92.08 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.3567, allocations: 4 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.3578, allocations: 218.7 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.3581, allocations: 0.6731 MB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.3583, allocations: 28 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.3584, allocations: 19.36 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3584, allocations: 0 / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.002917/0.3613, allocations: 0.7876 MB / 1.066 GB, free: 12.81 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/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