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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001177/0.001181, allocations: 102 kB / 16.35 MB, free: 5.828 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.00114/0.00114, allocations: 194.5 kB / 17.29 MB, free: 5.484 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.205/1.205, allocations: 222.9 MB / 241 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.332/2.332, allocations: 437.1 MB / 0.7112 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 0.8707 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4923/0.4937, allocations: 151.6 MB / 1.019 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001502/0.4952, allocations: 0.5895 MB / 1.019 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.4963, allocations: 1.104 MB / 1.02 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.376e-05/0.4963, allocations: 4 kB / 1.02 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.017e-06/0.4963, allocations: 3.938 kB / 1.02 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.4965, allocations: 15.92 kB / 1.02 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 3.286e-06/0.4965, allocations: 3.938 kB / 1.02 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 2.969e-05/0.4966, allocations: 4 kB / 1.02 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.551e-05/0.4966, allocations: 4 kB / 1.02 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.156e-05/0.4966, allocations: 3.984 kB / 1.02 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.738e-05/0.4966, allocations: 4 kB / 1.02 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.4967, allocations: 4 kB / 1.02 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.824e-05/0.4968, allocations: 19.92 kB / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.39e-06/0.4968, allocations: 4 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.484e-05/0.4968, allocations: 7.922 kB / 1.021 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 5.941e-05/0.4968, allocations: 7.984 kB / 1.021 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4969, allocations: 0 / 1.021 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4969, allocations: 0 / 1.021 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.4969, allocations: 3.984 kB / 1.021 GB, free: 0.7031 MB / 0.7637 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.0002114/0.4971, allocations: 323.5 kB / 1.021 GB, free: 348 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.4971, allocations: 8.031 kB / 1.021 GB, free: 340 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.373e-05/0.4971, allocations: 0.9375 kB / 1.021 GB, free: 340 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.121e-05/0.4972, allocations: 168.4 kB / 1.021 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.4972, allocations: 4.375 kB / 1.021 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.4973, allocations: 4.375 kB / 1.021 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.76e-05/0.4973, allocations: 41.95 kB / 1.021 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.4974, allocations: 0 / 1.021 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-06/0.4974, allocations: 0 / 1.021 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.4974, allocations: 0 / 1.021 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.852e-05/0.4974, allocations: 11.92 kB / 1.021 GB, free: 64 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.4975, allocations: 153.7 kB / 1.021 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.4977, allocations: 34.58 kB / 1.021 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.864e-05/0.4977, allocations: 12.94 kB / 1.021 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/0.4978, allocations: 85.05 kB / 1.021 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.4979, allocations: 38.5 kB / 1.021 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4979, allocations: 0 / 1.021 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.003866/0.5017, allocations: 0.5659 MB / 1.022 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.5018, allocations: 51.41 kB / 1.022 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.171e-05/0.5018, allocations: 93.86 kB / 1.022 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.5018, allocations: 25.7 kB / 1.022 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 1.929e-05/0.5019, allocations: 84.14 kB / 1.022 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.395e-05/0.5019, allocations: 23.58 kB / 1.022 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.5019, allocations: 17.72 kB / 1.022 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.036e-05/0.502, allocations: 310.8 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005581/0.5026, allocations: 91.94 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.5032, allocations: 102.5 kB / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.5043, allocations: 194.4 kB / 1.023 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.5043, allocations: 0 / 1.023 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001152/0.5054, allocations: 217.5 kB / 1.023 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.5055, allocations: 4 kB / 1.023 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.5055, allocations: 7.984 kB / 1.023 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.5055, allocations: 0 / 1.023 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.5059, allocations: 48 kB / 1.023 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.5059, allocations: 4 kB / 1.023 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.5062, allocations: 35.98 kB / 1.023 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.5062, allocations: 4 kB / 1.023 GB, free: 13.73 MB / 0.7794 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 6.455e-05/0.5063, allocations: 117.8 kB / 1.023 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.5063, allocations: 11.92 kB / 1.023 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.5075, allocations: 229.1 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-06/0.5076, allocations: 0 / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.5076, allocations: 0 / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.5076, allocations: 4 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.5089, allocations: 462.6 kB / 1.024 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.509, allocations: 4.062 kB / 1.024 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003514/0.5093, allocations: 47.97 kB / 1.024 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.5093, allocations: 3.938 kB / 1.024 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.5093, allocations: 0 / 1.024 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5093, allocations: 4 kB / 1.024 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5094, allocations: 0 / 1.024 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.5105, allocations: 315.2 kB / 1.024 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.701e-05/0.5105, allocations: 81.11 kB / 1.024 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.5106, allocations: 0 / 1.024 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.5109, allocations: 39.97 kB / 1.024 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.092e-05/0.5109, allocations: 4 kB / 1.024 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.5109, allocations: 0 / 1.024 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.069e-05/0.511, allocations: 75.28 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.511, allocations: 0 / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002293/0.5112, allocations: 12 kB / 1.025 GB, free: 12.23 MB / 0.7794 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.0001342/0.5113, allocations: 111.2 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00114/0.5125, allocations: 183.8 kB / 1.025 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5125, allocations: 0 / 1.025 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005396/0.513, allocations: 92.06 kB / 1.025 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.5132, allocations: 11.25 kB / 1.025 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.5143, allocations: 209 kB / 1.025 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.5144, allocations: 0.6768 MB / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001604/0.5146, allocations: 27.98 kB / 1.026 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.722e-05/0.5147, allocations: 11.44 kB / 1.026 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5147, allocations: 0 / 1.026 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of Templates: time 0.002372/0.5171, allocations: 0.8152 MB / 1.027 GB, free: 10.05 MB / 0.7794 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 -s cvode -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