Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.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.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction") [: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.209/1.209, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.0009832/0.0009831, allocations: 188.3 kB / 316 MB, free: 3.582 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.075/1.075, allocations: 205.2 MB / 0.5667 GB, free: 15.57 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.0008193/0.0008194, allocations: 90.14 kB / 0.671 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.024e-05/1.035e-05, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.143, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4136/0.5567, allocations: 132.3 MB / 1.014 GB, free: 6.355 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/0.5569, allocations: 77.69 kB / 1.014 GB, free: 6.312 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.00429/0.5612, allocations: 1.318 MB / 1.015 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.5612, allocations: 0.75 kB / 1.015 GB, free: 5.238 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002125/0.5614, allocations: 330.4 kB / 1.015 GB, free: 4.871 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.5615, allocations: 8.031 kB / 1.015 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.5615, allocations: 3.906 kB / 1.015 GB, free: 4.859 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.886e-05/0.5616, allocations: 171 kB / 1.016 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.5616, allocations: 0 / 1.016 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.5616, allocations: 4 kB / 1.016 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.019e-05/0.5617, allocations: 3.938 kB / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.912e-05/0.5617, allocations: 33.62 kB / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5617, allocations: 0.625 kB / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.5617, allocations: 0 / 1.016 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.5617, allocations: 4 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001069/0.5619, allocations: 129.2 kB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 2.684e-05/0.5619, allocations: 18.58 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.648e-05/0.5619, allocations: 8.953 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004263/0.5623, allocations: 0.5538 MB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.5624, allocations: 42.48 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.5624, allocations: 0 / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001449/0.5625, allocations: 33.7 kB / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.5626, allocations: 51.41 kB / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.396e-05/0.5626, allocations: 87.44 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.5626, allocations: 25.7 kB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.418e-05/0.5627, allocations: 80.14 kB / 1.017 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.5627, allocations: 3.906 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.5627, allocations: 4 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5628, allocations: 314.8 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.124e-06/0.5628, allocations: 4.031 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-06/0.5628, allocations: 0 / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.349e-05/0.5629, allocations: 7.984 kB / 1.017 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.5629, allocations: 0 / 1.017 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.325e-05/0.563, allocations: 34.77 kB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.563, allocations: 8 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.563, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.563, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.835e-05/0.563, allocations: 0 / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.5631, allocations: 8.031 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.5631, allocations: 7.891 kB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.5631, allocations: 4 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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 5.689e-05/0.5632, allocations: 101 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-06/0.5632, allocations: 0 / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.5633, allocations: 44.66 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.5633, allocations: 0 / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5633, allocations: 5.672 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5633, allocations: 3.906 kB / 1.017 GB, free: 2.809 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.855e-05/0.5634, allocations: 129.9 kB / 1.017 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.22e-07/0.5634, allocations: 0 / 1.017 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-05/0.5634, allocations: 7.938 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.5634, allocations: 0 / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.5634, allocations: 0 / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.5634, allocations: 0 / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5634, allocations: 3.938 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.11e-05/0.5635, allocations: 65.06 kB / 1.017 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.5636, allocations: 77.11 kB / 1.017 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.5636, allocations: 0 / 1.017 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.115e-05/0.5636, allocations: 4 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.5636, allocations: 4 kB / 1.017 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-06/0.5636, allocations: 0 / 1.017 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.671e-05/0.5637, allocations: 77.84 kB / 1.018 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00019/0.5639, allocations: 16.02 kB / 1.018 GB, free: 2.363 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 (1): * Single equations (assignments): 1 * 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.0001819/0.5641, allocations: 103.2 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 5.459e-05/0.5641, allocations: 7.938 kB / 1.018 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5641, allocations: 0 / 1.018 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.228e-06/0.5641, allocations: 0 / 1.018 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.307e-05/0.5642, allocations: 7.906 kB / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001611/0.5644, allocations: 43.56 kB / 1.018 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.5647, allocations: 0.6841 MB / 1.018 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of SimCode: time 1.91e-07/0.5647, allocations: 0 / 1.018 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of Templates: time 0.001897/0.5666, allocations: 306.8 kB / 1.019 GB, free: 1.172 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SpliceFunction.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches