Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") [: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.932/1.932, allocations: 387.2 MB / 394.5 MB, free: 13.31 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 184.6 kB / 487 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.3 MB / 0.7819 GB, free: 6.812 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009747/0.0009747, allocations: 95.81 kB / 0.9213 GB, free: 43.67 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 6.463e-06/6.493e-06, allocations: 0 / 1.066 GB, free: 7.598 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7229/0.7229, allocations: 142.3 MB / 1.205 GB, free: 72.77 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2036/0.9265, allocations: 150.3 MB / 1.352 GB, free: 12.98 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.9269, allocations: 76.95 kB / 1.352 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01554/0.9424, allocations: 4.736 MB / 1.357 GB, free: 8.199 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.465e-06/0.9425, allocations: 0 / 1.357 GB, free: 8.199 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000519/0.943, allocations: 422 kB / 1.357 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.9431, allocations: 8.031 kB / 1.357 GB, free: 7.734 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007405/0.9438, allocations: 136.5 kB / 1.357 GB, free: 7.602 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.944, allocations: 182.8 kB / 1.357 GB, free: 7.383 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.9441, allocations: 67.39 kB / 1.357 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.9441, allocations: 4 kB / 1.357 GB, free: 7.301 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00019/0.9443, allocations: 79.08 kB / 1.357 GB, free: 7.227 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.9445, allocations: 109.6 kB / 1.358 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.9445, allocations: 0 / 1.358 GB, free: 7.113 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.9446, allocations: 4.688 kB / 1.358 GB, free: 7.109 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.9446, allocations: 0 / 1.358 GB, free: 7.109 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.9457, allocations: 479.5 kB / 1.358 GB, free: 6.609 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.9459, allocations: 86.56 kB / 1.358 GB, free: 6.516 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.053e-05/0.9459, allocations: 36.98 kB / 1.358 GB, free: 6.477 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.946, allocations: 11.97 kB / 1.358 GB, free: 6.465 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.946, allocations: 30.56 kB / 1.358 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.946, allocations: 0 / 1.358 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0002784/0.9463, allocations: 106.2 kB / 1.358 GB, free: 6.316 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.9463, allocations: 59.34 kB / 1.358 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.9464, allocations: 123.7 kB / 1.358 GB, free: 6.121 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.9465, allocations: 25.7 kB / 1.359 GB, free: 6.09 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.9465, allocations: 100.2 kB / 1.359 GB, free: 5.984 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.9466, allocations: 19.66 kB / 1.359 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.866e-06/0.9466, allocations: 0 / 1.359 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.9467, allocations: 318.8 kB / 1.359 GB, free: 5.645 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.334e-05/0.9468, allocations: 36 kB / 1.359 GB, free: 5.609 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.86e-05/0.9469, allocations: 54.56 kB / 1.359 GB, free: 5.547 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.159e-05/0.9469, allocations: 32.48 kB / 1.359 GB, free: 5.516 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9469, allocations: 0 / 1.359 GB, free: 5.516 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002788/0.9472, allocations: 118 kB / 1.359 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.9473, allocations: 4 kB / 1.359 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.9473, allocations: 0 / 1.359 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.9473, allocations: 7.906 kB / 1.359 GB, free: 5.383 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.9476, allocations: 48.02 kB / 1.359 GB, free: 5.336 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.9476, allocations: 0 / 1.359 GB, free: 5.336 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.9478, allocations: 40.45 kB / 1.359 GB, free: 5.297 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.9478, allocations: 8 kB / 1.359 GB, free: 5.289 MB / 0.8542 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 (8): * Single equations (assignments): 8 * 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 9.222e-05/0.9479, allocations: 108.9 kB / 1.359 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.948, allocations: 11.81 kB / 1.359 GB, free: 5.164 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.9483, allocations: 115 kB / 1.359 GB, free: 5.047 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.9483, allocations: 7.75 kB / 1.36 GB, free: 5.043 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.9483, allocations: 4 kB / 1.36 GB, free: 5.039 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.9483, allocations: 3.984 kB / 1.36 GB, free: 5.035 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.9485, allocations: 202.9 kB / 1.36 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9485, allocations: 1 kB / 1.36 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.9488, allocations: 47.95 kB / 1.36 GB, free: 4.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9488, allocations: 4 kB / 1.36 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.9488, allocations: 0 / 1.36 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.9488, allocations: 3.938 kB / 1.36 GB, free: 4.742 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.9488, allocations: 3.828 kB / 1.36 GB, free: 4.742 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002375/0.9491, allocations: 201 kB / 1.36 GB, free: 4.531 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.9491, allocations: 89 kB / 1.36 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.9492, allocations: 0 / 1.36 GB, free: 4.426 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.9495, allocations: 51.95 kB / 1.36 GB, free: 4.375 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.51e-05/0.9495, allocations: 4 kB / 1.36 GB, free: 4.371 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.9496, allocations: 7.984 kB / 1.36 GB, free: 4.363 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.02e-05/0.9496, allocations: 99.27 kB / 1.36 GB, free: 4.266 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002646/0.9499, allocations: 23.91 kB / 1.36 GB, free: 4.242 MB / 0.8542 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 (6): * Single equations (assignments): 6 * 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.0001356/0.9501, allocations: 99.25 kB / 1.36 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001897/0.9502, allocations: 79.92 kB / 1.36 GB, free: 4.059 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.9503, allocations: 0 / 1.36 GB, free: 4.059 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.678e-05/0.9504, allocations: 47.92 kB / 1.36 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.9505, allocations: 6.812 kB / 1.36 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.9509, allocations: 144.1 kB / 1.361 GB, free: 3.848 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.9513, allocations: 0.731 MB / 1.361 GB, free: 3.09 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/0.9513, allocations: 0 / 1.361 GB, free: 3.09 MB / 0.8542 GB Notification: Performance of Templates: time 0.003912/0.9552, allocations: 1.686 MB / 1.363 GB, free: 1.438 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches