Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.777/1.777, 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.001059/0.001059, allocations: 181.3 kB / 487 MB, free: 5.387 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.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.0008331/0.0008331, allocations: 100.5 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.889e-06/4.919e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1816, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4966/0.6782, allocations: 149.4 MB / 1.351 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.6784, allocations: 74.55 kB / 1.351 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.004113/0.6825, allocations: 1.246 MB / 1.352 GB, free: 16.07 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.6826, allocations: 0.6875 kB / 1.352 GB, free: 16.07 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004206/0.683, allocations: 442.3 kB / 1.353 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.683, allocations: 15.36 kB / 1.353 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.6831, allocations: 9.312 kB / 1.353 GB, free: 15.63 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.6832, allocations: 194.6 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.6832, allocations: 7.781 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.6833, allocations: 4.719 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001231/0.6834, allocations: 49.09 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.6835, allocations: 85.38 kB / 1.353 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.6836, allocations: 3.938 kB / 1.353 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.6836, allocations: 3.547 kB / 1.353 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.6836, allocations: 1.156 kB / 1.353 GB, free: 15.39 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004581/0.684, allocations: 331 kB / 1.353 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.6842, allocations: 72.48 kB / 1.354 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.928e-05/0.6843, allocations: 54.39 kB / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.6843, allocations: 0 / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.6844, allocations: 92.23 kB / 1.354 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.6844, allocations: 0 / 1.354 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0002142/0.6847, allocations: 105.6 kB / 1.354 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.6847, allocations: 85.88 kB / 1.354 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.365e-05/0.6848, allocations: 115.1 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.6848, allocations: 31.48 kB / 1.354 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.556e-05/0.6848, allocations: 93.55 kB / 1.354 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.6848, allocations: 15.98 kB / 1.354 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.6849, allocations: 1.906 kB / 1.354 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.687e-05/0.6849, allocations: 318.9 kB / 1.354 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.029e-05/0.685, allocations: 46.5 kB / 1.354 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-05/0.6851, allocations: 44.28 kB / 1.354 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.097e-05/0.6851, allocations: 23.28 kB / 1.355 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.6851, allocations: 4 kB / 1.355 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001876/0.6853, allocations: 120.6 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.6853, allocations: 9 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.6853, allocations: 0 / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.6854, allocations: 1.703 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.6855, allocations: 20.98 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.6855, allocations: 5.141 kB / 1.355 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.6857, allocations: 38.62 kB / 1.355 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.6857, allocations: 4.797 kB / 1.355 GB, free: 14.34 MB / 0.8073 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 6.987e-05/0.6858, allocations: 147.2 kB / 1.355 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.6858, allocations: 9.438 kB / 1.355 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.355e-05/0.6858, allocations: 10.52 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.6858, allocations: 1.469 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.6858, allocations: 0 / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6859, allocations: 5.766 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.183e-05/0.686, allocations: 164.6 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.686, allocations: 1.125 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.227e-05/0.6861, allocations: 20.47 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.6861, allocations: 0.75 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.6861, allocations: 3.844 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.6861, allocations: 0 / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6861, allocations: 5.047 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001721/0.6863, allocations: 138.2 kB / 1.355 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.817e-05/0.6863, allocations: 83.58 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.6863, allocations: 6.406 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.6865, allocations: 35.48 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.6866, allocations: 33.94 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.6866, allocations: 7.391 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.491e-05/0.6867, allocations: 99.66 kB / 1.355 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001963/0.6869, allocations: 25.2 kB / 1.355 GB, free: 13.75 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: 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 8.809e-05/0.687, allocations: 101.7 kB / 1.356 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002204/0.6872, allocations: 166.5 kB / 1.356 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.6872, allocations: 0 / 1.356 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.6873, allocations: 99.7 kB / 1.356 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.6875, allocations: 15.22 kB / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003323/0.6878, allocations: 149.6 kB / 1.356 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.688, allocations: 0.7041 MB / 1.357 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of SimCode: time 2.6e-07/0.688, allocations: 0 / 1.357 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of Templates: time 0.003424/0.6914, allocations: 1.598 MB / 1.358 GB, free: 12.64 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","../files/Buildings_9_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.f,sine.offset,sine.phase,sine.startTime,time