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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005218/0.005218, allocations: 97.62 kB / 15.73 MB, free: 6.047 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: 201.2 kB / 16.68 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.766/2.766, allocations: 472.7 MB / 0.7453 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 68.12 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3338, allocations: 159.9 MB / 1.226 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00203/0.3359, allocations: 0.5856 MB / 1.226 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001315/0.3373, allocations: 1.12 MB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.033e-05/0.3373, allocations: 0 / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.3373, allocations: 0 / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003023/0.3376, allocations: 15.91 kB / 1.227 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.448e-06/0.3377, allocations: 4 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.19e-05/0.3377, allocations: 0 / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.563e-05/0.3378, allocations: 0 / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.106e-05/0.3378, allocations: 4 kB / 1.227 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.797e-05/0.3378, allocations: 4 kB / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.3378, allocations: 0 / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.338, allocations: 31.89 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.338, allocations: 3.938 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 1.43e-05/0.338, allocations: 0 / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.3381, allocations: 11.98 kB / 1.227 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.3381, allocations: 4 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3381, allocations: 0 / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.3382, allocations: 0 / 1.227 GB, free: 7.297 MB / 0.9825 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.0003188/0.3385, allocations: 315.5 kB / 1.228 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.3385, allocations: 15.97 kB / 1.228 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3386, allocations: 0.9375 kB / 1.228 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3387, allocations: 172.4 kB / 1.228 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-06/0.3387, allocations: 4.312 kB / 1.228 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.3387, allocations: 8.312 kB / 1.228 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.3388, allocations: 38 kB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3389, allocations: 4 kB / 1.228 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.3389, allocations: 0 / 1.228 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3389, allocations: 0 / 1.228 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.749e-05/0.3389, allocations: 4 kB / 1.228 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.3391, allocations: 153.7 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.3393, allocations: 38.52 kB / 1.228 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.189e-05/0.3393, allocations: 12.94 kB / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.3395, allocations: 81.11 kB / 1.228 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.3395, allocations: 38.5 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3395, allocations: 0 / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5): time 0.003997/0.3435, allocations: 0.5754 MB / 1.229 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.3436, allocations: 55.41 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.529e-05/0.3436, allocations: 89.86 kB / 1.229 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.3436, allocations: 25.7 kB / 1.229 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.671e-05/0.3437, allocations: 80.14 kB / 1.229 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.3437, allocations: 15.89 kB / 1.229 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.3438, allocations: 17.72 kB / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3439, allocations: 314.8 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00057/0.3445, allocations: 87.95 kB / 1.229 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.345, allocations: 106.5 kB / 1.23 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.3462, allocations: 186.5 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.3462, allocations: 0 / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001182/0.3474, allocations: 221.5 kB / 1.23 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.3474, allocations: 4 kB / 1.23 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3474, allocations: 0 / 1.23 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3474, allocations: 0 / 1.23 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.3478, allocations: 55.94 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3478, allocations: 0 / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.3482, allocations: 39.98 kB / 1.23 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3482, allocations: 0 / 1.23 GB, free: 4.324 MB / 0.9825 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.066e-05/0.3483, allocations: 122.4 kB / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.95e-05/0.3483, allocations: 4.125 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.3496, allocations: 237.1 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3496, allocations: 7.875 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3497, allocations: 0 / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3497, allocations: 4.422 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.3511, allocations: 454.4 kB / 1.231 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3511, allocations: 0 / 1.231 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003641/0.3515, allocations: 51.97 kB / 1.231 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3515, allocations: 0 / 1.231 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.3516, allocations: 3.938 kB / 1.231 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.3516, allocations: 7.922 kB / 1.231 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3516, allocations: 0 / 1.231 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.3528, allocations: 315.4 kB / 1.231 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.3528, allocations: 77.11 kB / 1.231 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.3529, allocations: 0 / 1.231 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.3532, allocations: 43.97 kB / 1.231 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.3532, allocations: 0 / 1.231 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.3533, allocations: 4 kB / 1.231 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.224e-05/0.3533, allocations: 75.28 kB / 1.231 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3533, allocations: 0 / 1.231 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002515/0.3536, allocations: 19.92 kB / 1.231 GB, free: 2.82 MB / 0.9825 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.0001818/0.3538, allocations: 107.2 kB / 1.232 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001216/0.355, allocations: 179.8 kB / 1.232 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.355, allocations: 0 / 1.232 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005737/0.3556, allocations: 96 kB / 1.232 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.3558, allocations: 9.891 kB / 1.232 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.3569, allocations: 205 kB / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3571, allocations: 0.6807 MB / 1.233 GB, free: 1.492 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001649/0.3573, allocations: 24.25 kB / 1.233 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.173e-05/0.3574, allocations: 7.438 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.3574, allocations: 4 kB / 1.233 GB, free: 1.457 MB / 0.9825 GB Notification: Performance of Templates: time 0.002812/0.3602, allocations: 0.819 MB / 1.234 GB, free: 0.6445 MB / 0.9825 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