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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001521/0.001521, allocations: 107.2 kB / 15.99 MB, free: 5.891 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.001769/0.001769, allocations: 194.7 kB / 16.91 MB, free: 5.746 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.377/1.377, allocations: 222.9 MB / 240.6 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 469.4 MB / 0.7423 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 65.67 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3091, allocations: 159.1 MB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001987/0.3111, allocations: 0.6541 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3126, allocations: 1.11 MB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.242e-05/0.3126, allocations: 0 / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.453e-05/0.3127, allocations: 0 / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.3129, allocations: 11.98 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 3.797e-06/0.3129, allocations: 0 / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.885e-05/0.313, allocations: 7.938 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.313, allocations: 7.984 kB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.513e-05/0.313, allocations: 4 kB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.189e-05/0.3131, allocations: 3.938 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.213e-06/0.3131, allocations: 0 / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.3132, allocations: 19.98 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.745e-06/0.3132, allocations: 3.984 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.3132, allocations: 7.938 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 6.428e-05/0.3133, allocations: 7.984 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3133, allocations: 0 / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3133, allocations: 0 / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3133, allocations: 0 / 1.066 GB, free: 13.05 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.0002899/0.3136, allocations: 323.6 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3137, allocations: 8.625 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.3137, allocations: 4.938 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.68e-05/0.3138, allocations: 160.4 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3138, allocations: 384 / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.3139, allocations: 384 / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.78e-05/0.314, allocations: 42 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.314, allocations: 0 / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.314, allocations: 3.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.314, allocations: 4 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.963e-05/0.3141, allocations: 15.88 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.3142, allocations: 149.7 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.3144, allocations: 34.61 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.049e-05/0.3144, allocations: 8.859 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.3146, allocations: 81.11 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3146, allocations: 34.5 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 2.204e-06/0.3146, allocations: 7.984 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.00438/0.319, allocations: 0.5718 MB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.3191, allocations: 51.41 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.085e-05/0.3191, allocations: 93.84 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3191, allocations: 33.7 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.3192, allocations: 88.08 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.3192, allocations: 7.812 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.3193, allocations: 17.72 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3194, allocations: 322.8 kB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005672/0.32, allocations: 79.95 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000571/0.3206, allocations: 102.5 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.3217, allocations: 190.5 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.3217, allocations: 3.938 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001177/0.3229, allocations: 213.5 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3229, allocations: 4 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3229, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3229, allocations: 4.188 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003771/0.3233, allocations: 52 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3233, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.3237, allocations: 39.98 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.3237, allocations: 7.984 kB / 1.068 GB, free: 10.08 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 9.488e-05/0.3238, allocations: 109.8 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.49e-05/0.3238, allocations: 7.938 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.3252, allocations: 237 kB / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.3252, allocations: 0 / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3252, allocations: 0 / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3252, allocations: 0 / 1.069 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.3267, allocations: 462.3 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3267, allocations: 4 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.3271, allocations: 51.91 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3271, allocations: 3.938 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.3272, allocations: 0 / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3272, allocations: 0 / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3272, allocations: 0 / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.3284, allocations: 307.3 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.3285, allocations: 85.09 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.3285, allocations: 8 kB / 1.069 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.3289, allocations: 35.98 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.372e-05/0.3289, allocations: 4 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3289, allocations: 3.984 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.837e-05/0.329, allocations: 75.28 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.329, allocations: 0 / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002597/0.3292, allocations: 8 kB / 1.07 GB, free: 8.602 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.0001936/0.3295, allocations: 111.2 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001258/0.3307, allocations: 184.1 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3307, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005844/0.3313, allocations: 92.02 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.3316, allocations: 12 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.3327, allocations: 242.6 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.333, allocations: 0.6806 MB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.994e-05/0.3331, allocations: 11.44 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3331, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of Templates: time 0.002681/0.3358, allocations: 1.1 MB / 1.072 GB, free: 6.117 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/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