Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.185/1.185, allocations: 249.4 MB / 256.7 MB, free: 7.012 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009495/0.0009495, allocations: 173.3 kB / 316 MB, free: 3.613 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.063/1.063, allocations: 205.1 MB / 0.5667 GB, free: 15.73 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008875/0.0008874, allocations: 94.06 kB / 0.671 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.015e-06/8.045e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1546, allocations: 106.3 MB / 0.8846 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4384/0.593, allocations: 131.9 MB / 1.013 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.5933, allocations: 79.17 kB / 1.013 GB, free: 6.926 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001956/0.5953, allocations: 0.5181 MB / 1.014 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.5953, allocations: 0 / 1.014 GB, free: 6.516 MB / 0.6355 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.0002145/0.5955, allocations: 313.3 kB / 1.014 GB, free: 6.168 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.5956, allocations: 8.031 kB / 1.014 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.5956, allocations: 7.906 kB / 1.014 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.662e-05/0.5957, allocations: 170.9 kB / 1.014 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.5957, allocations: 0 / 1.014 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.5957, allocations: 4 kB / 1.014 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.829e-05/0.5958, allocations: 4 kB / 1.014 GB, free: 5.938 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.825e-05/0.5959, allocations: 45.45 kB / 1.014 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.5959, allocations: 0 / 1.014 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.5959, allocations: 0 / 1.014 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.5959, allocations: 6.625 kB / 1.014 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001116/0.596, allocations: 122.2 kB / 1.015 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.5962, allocations: 29.19 kB / 1.015 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.044e-05/0.5962, allocations: 12.8 kB / 1.015 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.5963, allocations: 81.11 kB / 1.015 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.5964, allocations: 34.56 kB / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.5964, allocations: 0 / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5): time 0.00252/0.5989, allocations: 367 kB / 1.015 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.5989, allocations: 55.41 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.537e-05/0.599, allocations: 85 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.599, allocations: 25.7 kB / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.9e-05/0.599, allocations: 84.08 kB / 1.015 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.5991, allocations: 15.25 kB / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.5991, allocations: 0 / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.165e-05/0.5992, allocations: 314.8 kB / 1.016 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.667e-05/0.5992, allocations: 11.98 kB / 1.016 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-05/0.5993, allocations: 25.95 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.96e-05/0.5994, allocations: 19.97 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.5994, allocations: 0 / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000195/0.5996, allocations: 68.55 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.5996, allocations: 4 kB / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.5996, allocations: 0 / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.5996, allocations: 8.094 kB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.6, allocations: 45.34 kB / 1.016 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.6, allocations: 11.94 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.6004, allocations: 35.97 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.6004, allocations: 4 kB / 1.016 GB, free: 4.348 MB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/0.6005, allocations: 108.9 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.6005, allocations: 0 / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003801/0.6009, allocations: 107.8 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.6009, allocations: 0 / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.6009, allocations: 0 / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6009, allocations: 8 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003808/0.6013, allocations: 287 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.6013, allocations: 0 / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003934/0.6017, allocations: 55.91 kB / 1.016 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.6017, allocations: 3.906 kB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.6017, allocations: 1.438 kB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.6017, allocations: 0 / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.6017, allocations: 0 / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002157/0.602, allocations: 161.4 kB / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.602, allocations: 85.02 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.602, allocations: 0 / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.6024, allocations: 40.36 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.669e-05/0.6024, allocations: 3.984 kB / 1.017 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.6025, allocations: 4 kB / 1.017 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.293e-05/0.6025, allocations: 75.28 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002262/0.6027, allocations: 11.94 kB / 1.017 GB, free: 3.348 MB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001559/0.6029, allocations: 107.2 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.603, allocations: 27.05 kB / 1.017 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.603, allocations: 2.625 kB / 1.017 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.052e-05/0.6031, allocations: 23.25 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.6032, allocations: 0 / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000591/0.6038, allocations: 107.7 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/0.6041, allocations: 0.6883 MB / 1.018 GB, free: 2.352 MB / 0.6355 GB Notification: Performance of SimCode: time 1.372e-06/0.6041, allocations: 0 / 1.018 GB, free: 2.352 MB / 0.6355 GB Notification: Performance of Templates: time 0.003024/0.6071, allocations: 1.339 MB / 1.019 GB, free: 1.031 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches