Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests") [: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.346/1.346, allocations: 249.4 MB / 256.7 MB, free: 6.891 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.001136/0.001136, allocations: 176.8 kB / 316 MB, free: 3.508 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.503/1.503, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0009745/0.0009745, allocations: 91.3 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.231e-06/6.272e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1723, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5145/0.6869, allocations: 132.9 MB / 1.014 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.6871, allocations: 70.53 kB / 1.014 GB, free: 5.555 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004468/0.6916, allocations: 1.212 MB / 1.016 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.128e-06/0.6916, allocations: 0 / 1.016 GB, free: 4.551 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005433/0.6922, allocations: 432.4 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.6922, allocations: 11.97 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.6923, allocations: 11.91 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.6925, allocations: 198.1 kB / 1.016 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.6925, allocations: 7.969 kB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.261e-05/0.6925, allocations: 15.91 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001356/0.6927, allocations: 45.44 kB / 1.016 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.6928, allocations: 91.2 kB / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.6929, allocations: 0 / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.6929, allocations: 3.938 kB / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.6929, allocations: 4 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005056/0.6934, allocations: 313.8 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.6935, allocations: 74.94 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.26e-05/0.6936, allocations: 55.84 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.6937, allocations: 0 / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001353/0.6938, allocations: 90.94 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.6938, allocations: 0 / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002526/0.6941, allocations: 109.6 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.6941, allocations: 84 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.6943, allocations: 115.6 kB / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.6943, allocations: 32.89 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.6944, allocations: 96 kB / 1.017 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.6944, allocations: 19.73 kB / 1.017 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.6944, allocations: 3.75 kB / 1.017 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.6945, allocations: 318.8 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.056e-05/0.6946, allocations: 48.19 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.6947, allocations: 45.48 kB / 1.018 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.924e-05/0.6948, allocations: 23.05 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.6948, allocations: 3.906 kB / 1.018 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002064/0.695, allocations: 125.8 kB / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.695, allocations: 8 kB / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.695, allocations: 0 / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.6951, allocations: 0 / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.6952, allocations: 15.98 kB / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.6952, allocations: 4 kB / 1.018 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.6954, allocations: 31.97 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.6954, allocations: 4 kB / 1.018 GB, free: 2.148 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: 6 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001086/0.6955, allocations: 149.2 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.6956, allocations: 7.906 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.6956, allocations: 12.05 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.6956, allocations: 4 kB / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.6956, allocations: 0 / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6956, allocations: 0 / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.6958, allocations: 164.1 kB / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.6958, allocations: 6.531 kB / 1.018 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.78e-05/0.6959, allocations: 23.97 kB / 1.018 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.6959, allocations: 4 kB / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.6959, allocations: 3.5 kB / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.6959, allocations: 0 / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6959, allocations: 96 / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002014/0.6961, allocations: 136 kB / 1.018 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.6962, allocations: 85 kB / 1.019 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.6962, allocations: 8 kB / 1.019 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.6964, allocations: 23.98 kB / 1.019 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.6965, allocations: 42.14 kB / 1.019 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.6966, allocations: 7.984 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.255e-05/0.6966, allocations: 104.5 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002068/0.6968, allocations: 20 kB / 1.019 GB, free: 1.344 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: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0001337/0.697, allocations: 118.3 kB / 1.019 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002595/0.6972, allocations: 162.4 kB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.6972, allocations: 0 / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.6974, allocations: 90.31 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/0.6976, allocations: 13.97 kB / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004023/0.698, allocations: 152.7 kB / 1.019 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.6983, allocations: 0.6997 MB / 1.02 GB, free: 124 kB / 0.6355 GB Notification: Performance of SimCode: time 2.51e-07/0.6983, allocations: 4 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of Templates: time 0.003781/0.7021, allocations: 1.598 MB / 1.021 GB, free: 14.55 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,numReq.u[1],numReq.u[2],numReq.y Variables in the result:numReq.kind,numReq.nin,numReq.threShold,numReq.u[1],numReq.u[2],numReq.y,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time