Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_10_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_10_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.001541/0.001541, allocations: 103.1 kB / 16.27 MB, free: 5.91 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.001788/0.001788, allocations: 186.4 kB / 17.19 MB, free: 5.555 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.378/1.378, allocations: 222.9 MB / 240.9 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.497/2.497, allocations: 437 MB / 0.711 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 64.5 kB / 0.8699 GB, free: 2.254 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3018, allocations: 151.6 MB / 1.018 GB, free: 10.69 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00193/0.3037, allocations: 0.5824 MB / 1.019 GB, free: 10.1 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00135/0.3051, allocations: 1.112 MB / 1.02 GB, free: 8.973 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.3052, allocations: 0 / 1.02 GB, free: 8.973 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.521e-05/0.3052, allocations: 0 / 1.02 GB, free: 8.973 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.3055, allocations: 19.86 kB / 1.02 GB, free: 8.953 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 4.138e-06/0.3055, allocations: 0 / 1.02 GB, free: 8.953 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.203e-05/0.3055, allocations: 8 kB / 1.02 GB, free: 8.945 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.3056, allocations: 11.98 kB / 1.02 GB, free: 8.934 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.3056, allocations: 0 / 1.02 GB, free: 8.934 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 2.351e-05/0.3056, allocations: 4 kB / 1.02 GB, free: 8.93 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.744e-06/0.3056, allocations: 3.938 kB / 1.02 GB, free: 8.926 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.3058, allocations: 19.92 kB / 1.02 GB, free: 8.906 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.3058, allocations: 3.984 kB / 1.02 GB, free: 8.902 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.44e-05/0.3058, allocations: 0 / 1.02 GB, free: 8.902 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.773e-05/0.3059, allocations: 11.98 kB / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3059, allocations: 4 kB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3059, allocations: 0 / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.3059, allocations: 0 / 1.02 GB, free: 8.887 MB / 0.795 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.0002727/0.3062, allocations: 319.6 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3062, allocations: 8.031 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.3063, allocations: 8.875 kB / 1.02 GB, free: 8.512 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.985e-05/0.3064, allocations: 164.4 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.3064, allocations: 4.375 kB / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.3064, allocations: 384 / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.097e-05/0.3065, allocations: 41.94 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3065, allocations: 0 / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.3065, allocations: 0 / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3066, allocations: 4 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.881e-05/0.3066, allocations: 8 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.3068, allocations: 149.7 kB / 1.02 GB, free: 8.055 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.3069, allocations: 34.61 kB / 1.02 GB, free: 8.012 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.592e-05/0.307, allocations: 14.33 kB / 1.02 GB, free: 7.996 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.3071, allocations: 85.09 kB / 1.021 GB, free: 7.895 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.3072, allocations: 46.58 kB / 1.021 GB, free: 7.84 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.3072, allocations: 0 / 1.021 GB, free: 7.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.004273/0.3115, allocations: 0.5717 MB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.3115, allocations: 51.41 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.563e-05/0.3115, allocations: 89.86 kB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.3116, allocations: 29.7 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.332e-05/0.3116, allocations: 80.14 kB / 1.021 GB, free: 6.984 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.3116, allocations: 19.73 kB / 1.021 GB, free: 6.965 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/0.3117, allocations: 17.7 kB / 1.021 GB, free: 6.941 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.3118, allocations: 322.8 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005987/0.3124, allocations: 75.95 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005988/0.313, allocations: 102.5 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.3142, allocations: 194.4 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3142, allocations: 0 / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001281/0.3155, allocations: 217.5 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3155, allocations: 4 kB / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3155, allocations: 0 / 1.022 GB, free: 6.012 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3156, allocations: 4 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.316, allocations: 48 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.316, allocations: 0 / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.3164, allocations: 43.97 kB / 1.022 GB, free: 5.918 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.3164, allocations: 4 kB / 1.022 GB, free: 5.914 MB / 0.795 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.000108/0.3165, allocations: 117.8 kB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.3165, allocations: 11.88 kB / 1.022 GB, free: 5.777 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.3179, allocations: 233.1 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3179, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.318, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.318, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.3195, allocations: 466.5 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3195, allocations: 0 / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.3199, allocations: 51.97 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3199, allocations: 0 / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3199, allocations: 3.984 kB / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3199, allocations: 0 / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3199, allocations: 0 / 1.023 GB, free: 4.977 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.3212, allocations: 315.3 kB / 1.024 GB, free: 4.652 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.3213, allocations: 77.11 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.3213, allocations: 0 / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.3217, allocations: 39.98 kB / 1.024 GB, free: 4.52 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.3217, allocations: 3.984 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.3217, allocations: 4 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.473e-05/0.3217, allocations: 75.28 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3217, allocations: 0 / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002467/0.322, allocations: 12 kB / 1.024 GB, free: 4.426 MB / 0.795 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.0001725/0.3222, allocations: 103.2 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.3235, allocations: 187.8 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3235, allocations: 0 / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006133/0.3241, allocations: 88.08 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.3243, allocations: 13.06 kB / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.3255, allocations: 242.7 kB / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3258, allocations: 0.6768 MB / 1.025 GB, free: 3.062 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.396e-05/0.3259, allocations: 7.438 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of SimCode: time 2.534e-06/0.3259, allocations: 4 kB / 1.025 GB, free: 3.051 MB / 0.795 GB Notification: Performance of Templates: time 0.002521/0.3284, allocations: 1.108 MB / 1.026 GB, free: 1.949 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches