Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Splice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Splice") translateModel(Buildings.Utilities.Math.Examples.Splice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|splice.x|splice.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Splice") [: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 10.0.0-master/package.mo): time 1.969/1.969, allocations: 390.4 MB / 397.7 MB, free: 1.922 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009839/0.0009838, allocations: 187 kB / 490.8 MB, free: 7.492 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.3 MB / 0.7863 GB, free: 248 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009569/0.000957, allocations: 88.62 kB / 0.9264 GB, free: 0.6445 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 7.845e-06/7.865e-06, allocations: 4 kB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2815, allocations: 143 MB / 1.212 GB, free: 10.6 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7521/1.034, allocations: 150.4 MB / 1.358 GB, free: 11.66 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/1.034, allocations: 75.94 kB / 1.359 GB, free: 11.59 MB / 0.8311 GB Notification: Performance of FrontEnd: time 0.006504/1.04, allocations: 1.893 MB / 1.36 GB, free: 9.707 MB / 0.8311 GB Notification: Performance of Transformations before backend: time 7.133e-06/1.041, allocations: 0 / 1.36 GB, free: 9.707 MB / 0.8311 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003734/1.041, allocations: 358.3 kB / 1.361 GB, free: 9.312 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/1.041, allocations: 8.031 kB / 1.361 GB, free: 9.305 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/1.041, allocations: 3.906 kB / 1.361 GB, free: 9.301 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/1.041, allocations: 179 kB / 1.361 GB, free: 9.086 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/1.041, allocations: 0 / 1.361 GB, free: 9.086 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/1.041, allocations: 4 kB / 1.361 GB, free: 9.082 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.443e-05/1.041, allocations: 16 kB / 1.361 GB, free: 9.066 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.231e-05/1.041, allocations: 49.62 kB / 1.361 GB, free: 9.012 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/1.041, allocations: 0 / 1.361 GB, free: 9.012 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/1.041, allocations: 2.078 kB / 1.361 GB, free: 9.012 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/1.041, allocations: 0 / 1.361 GB, free: 9.012 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000357/1.042, allocations: 253.3 kB / 1.361 GB, free: 8.727 MB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 6.261e-05/1.042, allocations: 30.52 kB / 1.361 GB, free: 8.688 MB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.779e-05/1.042, allocations: 12.92 kB / 1.361 GB, free: 8.672 MB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005556/1.042, allocations: 0.5505 MB / 1.362 GB, free: 7.992 MB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/1.042, allocations: 38.56 kB / 1.362 GB, free: 7.945 MB / 0.8311 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/1.042, allocations: 0 / 1.362 GB, free: 7.945 MB / 0.8311 GB Notification: Performance of matching and sorting (n=2): time 0.0002115/1.043, allocations: 45.59 kB / 1.362 GB, free: 7.895 MB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/1.043, allocations: 51.41 kB / 1.362 GB, free: 7.832 MB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/1.043, allocations: 97 kB / 1.362 GB, free: 7.73 MB / 0.8311 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/1.043, allocations: 25.7 kB / 1.362 GB, free: 7.699 MB / 0.8311 GB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/1.043, allocations: 96.06 kB / 1.362 GB, free: 7.602 MB / 0.8311 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/1.043, allocations: 7.938 kB / 1.362 GB, free: 7.594 MB / 0.8311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/1.043, allocations: 0 / 1.362 GB, free: 7.594 MB / 0.8311 GB Notification: Performance of setup shared object (initialization): time 0.000122/1.043, allocations: 314.8 kB / 1.362 GB, free: 7.277 MB / 0.8311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/1.043, allocations: 4 kB / 1.362 GB, free: 7.273 MB / 0.8311 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.799e-05/1.043, allocations: 12.67 kB / 1.362 GB, free: 7.262 MB / 0.8311 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.742e-05/1.043, allocations: 8 kB / 1.362 GB, free: 7.254 MB / 0.8311 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/1.043, allocations: 0.7656 kB / 1.362 GB, free: 7.254 MB / 0.8311 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.976e-05/1.043, allocations: 49.59 kB / 1.363 GB, free: 7.199 MB / 0.8311 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/1.043, allocations: 8 kB / 1.363 GB, free: 7.191 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/1.043, allocations: 4.094 kB / 1.363 GB, free: 7.188 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/1.043, allocations: 0 / 1.363 GB, free: 7.188 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.705e-05/1.043, allocations: 4 kB / 1.363 GB, free: 7.184 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/1.043, allocations: 3.938 kB / 1.363 GB, free: 7.18 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.712e-05/1.043, allocations: 11.94 kB / 1.363 GB, free: 7.168 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/1.043, allocations: 3.984 kB / 1.363 GB, free: 7.164 MB / 0.8311 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 (2): * Single equations (assignments): 2 * 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.998e-05/1.044, allocations: 110.8 kB / 1.363 GB, free: 7.051 MB / 0.8311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/1.044, allocations: 4 kB / 1.363 GB, free: 7.047 MB / 0.8311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/1.044, allocations: 53.25 kB / 1.363 GB, free: 6.992 MB / 0.8311 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.044, allocations: 3.906 kB / 1.363 GB, free: 6.988 MB / 0.8311 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/1.044, allocations: 0 / 1.363 GB, free: 6.988 MB / 0.8311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/1.044, allocations: 0 / 1.363 GB, free: 6.988 MB / 0.8311 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/1.044, allocations: 150.3 kB / 1.363 GB, free: 6.805 MB / 0.8311 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/1.044, allocations: 0 / 1.363 GB, free: 6.805 MB / 0.8311 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.755e-05/1.044, allocations: 8 kB / 1.363 GB, free: 6.797 MB / 0.8311 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/1.044, allocations: 0 / 1.363 GB, free: 6.797 MB / 0.8311 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/1.044, allocations: 8.016 kB / 1.363 GB, free: 6.789 MB / 0.8311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/1.044, allocations: 0 / 1.363 GB, free: 6.789 MB / 0.8311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.044, allocations: 0 / 1.363 GB, free: 6.789 MB / 0.8311 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001335/1.044, allocations: 143.4 kB / 1.363 GB, free: 6.633 MB / 0.8311 GB Notification: Performance of postOpt removeConstants (simulation): time 4.911e-05/1.044, allocations: 85.02 kB / 1.363 GB, free: 6.531 MB / 0.8311 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/1.044, allocations: 0 / 1.363 GB, free: 6.531 MB / 0.8311 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.794e-05/1.044, allocations: 8.031 kB / 1.363 GB, free: 6.523 MB / 0.8311 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/1.044, allocations: 3.938 kB / 1.363 GB, free: 6.52 MB / 0.8311 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/1.044, allocations: 0 / 1.363 GB, free: 6.52 MB / 0.8311 GB Notification: Performance of sort global known variables: time 4.404e-05/1.044, allocations: 91.27 kB / 1.363 GB, free: 6.43 MB / 0.8311 GB Notification: Performance of remove unused functions: time 0.0002188/1.045, allocations: 15.94 kB / 1.363 GB, free: 6.414 MB / 0.8311 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 (2): * Single equations (assignments): 2 * 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.0001713/1.045, allocations: 107.2 kB / 1.363 GB, free: 6.301 MB / 0.8311 GB Notification: Performance of simCode: created initialization part: time 8.454e-05/1.045, allocations: 15.98 kB / 1.363 GB, free: 6.285 MB / 0.8311 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/1.045, allocations: 0 / 1.363 GB, free: 6.285 MB / 0.8311 GB Notification: Performance of simCode: created simulation system equations: time 2.178e-05/1.045, allocations: 16.06 kB / 1.363 GB, free: 6.27 MB / 0.8311 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/1.045, allocations: 2.969 kB / 1.363 GB, free: 6.27 MB / 0.8311 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002379/1.045, allocations: 71.58 kB / 1.363 GB, free: 6.176 MB / 0.8311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/1.046, allocations: 0.6958 MB / 1.364 GB, free: 5.453 MB / 0.8311 GB Notification: Performance of SimCode: time 1.743e-06/1.046, allocations: 0 / 1.364 GB, free: 5.453 MB / 0.8311 GB Notification: Performance of Templates: time 0.0024/1.048, allocations: 456.5 kB / 1.365 GB, free: 5.008 MB / 0.8311 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Splice.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Splice.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Splice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Splice.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Splice_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Splice.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Splice.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches