Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.92/1.92, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 181.2 kB / 487 MB, free: 5.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 97.56 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.548e-06/9.558e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2575, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6266/0.8842, allocations: 148.3 MB / 1.35 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.8845, allocations: 76.19 kB / 1.35 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002323/0.8869, allocations: 0.5536 MB / 1.351 GB, free: 16.11 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.8869, allocations: 1.812 kB / 1.351 GB, free: 16.11 MB / 0.8073 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.0001699/0.8871, allocations: 314.3 kB / 1.351 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.8871, allocations: 9.219 kB / 1.351 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.869e-05/0.8871, allocations: 7.688 kB / 1.351 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.794e-05/0.8872, allocations: 168.1 kB / 1.351 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.8872, allocations: 1.312 kB / 1.351 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.8873, allocations: 2.719 kB / 1.351 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.993e-05/0.8873, allocations: 4.25 kB / 1.351 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.471e-05/0.8874, allocations: 31.36 kB / 1.351 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.8874, allocations: 1.406 kB / 1.351 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.8874, allocations: 0 / 1.351 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.8874, allocations: 3.062 kB / 1.351 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001059/0.8875, allocations: 134.4 kB / 1.351 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.8877, allocations: 33.16 kB / 1.351 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.8877, allocations: 11.72 kB / 1.351 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.8879, allocations: 83.16 kB / 1.351 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.8879, allocations: 31.88 kB / 1.351 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.383e-06/0.8879, allocations: 0 / 1.351 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5): time 0.002662/0.8906, allocations: 369 kB / 1.352 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.915e-05/0.8906, allocations: 51.41 kB / 1.352 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.098e-05/0.8906, allocations: 85 kB / 1.352 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.8907, allocations: 28.83 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.059e-05/0.8907, allocations: 80.14 kB / 1.352 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.8907, allocations: 16.09 kB / 1.352 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.8907, allocations: 0 / 1.352 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.509e-05/0.8908, allocations: 316.4 kB / 1.352 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.693e-05/0.8908, allocations: 9.438 kB / 1.352 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.8909, allocations: 23.09 kB / 1.352 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001094/0.891, allocations: 25.31 kB / 1.352 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.891, allocations: 0 / 1.352 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002051/0.8912, allocations: 70.16 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.8912, allocations: 6.688 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.8912, allocations: 1.344 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.8913, allocations: 1.188 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.8917, allocations: 53.28 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.8917, allocations: 0.9375 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.8921, allocations: 41.59 kB / 1.353 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.8921, allocations: 3.594 kB / 1.353 GB, free: 14.47 MB / 0.8073 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 6.233e-05/0.8922, allocations: 111.2 kB / 1.353 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.8922, allocations: 5.188 kB / 1.353 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003981/0.8926, allocations: 102.1 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.8926, allocations: 1.406 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.8926, allocations: 1.547 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8926, allocations: 0 / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000378/0.893, allocations: 289.2 kB / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.893, allocations: 1.031 kB / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.8934, allocations: 50.55 kB / 1.353 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.8934, allocations: 3.938 kB / 1.353 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.8935, allocations: 1.375 kB / 1.353 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8935, allocations: 0 / 1.353 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.8935, allocations: 1.312 kB / 1.353 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002172/0.8937, allocations: 168.4 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.8937, allocations: 77.11 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.8938, allocations: 2.875 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.8941, allocations: 38.98 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.465e-05/0.8942, allocations: 10.69 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.8942, allocations: 1.375 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.667e-05/0.8942, allocations: 76.66 kB / 1.354 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002407/0.8945, allocations: 10.69 kB / 1.354 GB, free: 13.71 MB / 0.8073 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.0001657/0.8946, allocations: 113.8 kB / 1.354 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001402/0.8948, allocations: 23.56 kB / 1.354 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8948, allocations: 0 / 1.354 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.389e-05/0.8948, allocations: 16.83 kB / 1.354 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.895, allocations: 3.688 kB / 1.354 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/0.8956, allocations: 102.5 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.8959, allocations: 0.6928 MB / 1.354 GB, free: 28.84 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.8959, allocations: 0 / 1.354 GB, free: 28.84 MB / 0.823 GB Notification: Performance of Templates: time 0.003644/0.8995, allocations: 1.33 MB / 1.356 GB, free: 28.74 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches