Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.723/1.723, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0009202/0.0009202, allocations: 177.3 kB / 490.8 MB, free: 1.941 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.066/1.066, allocations: 221.4 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008168/0.0008167, allocations: 91.97 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.579e-06/4.599e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1706, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4638/0.6344, allocations: 150.2 MB / 1.358 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/0.6347, allocations: 70.22 kB / 1.358 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.004046/0.6387, allocations: 1.24 MB / 1.359 GB, free: 17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.6387, allocations: 2.062 kB / 1.359 GB, free: 17 MB / 0.823 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.0004482/0.6392, allocations: 440.3 kB / 1.36 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.6392, allocations: 13.88 kB / 1.36 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.6393, allocations: 8.625 kB / 1.36 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.6394, allocations: 200.1 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.6395, allocations: 4.422 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.6395, allocations: 8.219 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001261/0.6396, allocations: 51.75 kB / 1.36 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.6398, allocations: 90.48 kB / 1.36 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.6398, allocations: 1.062 kB / 1.36 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.6398, allocations: 1.062 kB / 1.36 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.6398, allocations: 1.688 kB / 1.36 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004472/0.6402, allocations: 324 kB / 1.361 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.6404, allocations: 76.3 kB / 1.361 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.077e-05/0.6404, allocations: 54.27 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.6405, allocations: 1.344 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/0.6406, allocations: 89.8 kB / 1.361 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.6406, allocations: 1 kB / 1.361 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001996/0.6408, allocations: 113 kB / 1.361 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.6408, allocations: 82.72 kB / 1.361 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.77e-05/0.6409, allocations: 112.2 kB / 1.361 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.6409, allocations: 28.23 kB / 1.361 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.641, allocations: 96.45 kB / 1.361 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.641, allocations: 21.09 kB / 1.361 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.641, allocations: 0.9688 kB / 1.361 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6411, allocations: 319.4 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.299e-05/0.6412, allocations: 52.88 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.596e-05/0.6413, allocations: 44.67 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.83e-05/0.6413, allocations: 22.89 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.6413, allocations: 3.938 kB / 1.362 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001756/0.6415, allocations: 119.5 kB / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.6415, allocations: 10.16 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.6416, allocations: 0 / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.6416, allocations: 0 / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.6417, allocations: 23.08 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-06/0.6417, allocations: 0.75 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.6419, allocations: 35.25 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.6419, allocations: 4.703 kB / 1.362 GB, free: 31.26 MB / 0.8386 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 7.721e-05/0.642, allocations: 138.3 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.642, allocations: 9.562 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.286e-05/0.642, allocations: 12.11 kB / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.642, allocations: 0 / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.642, allocations: 2.078 kB / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.642, allocations: 0 / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.643e-05/0.6421, allocations: 172.9 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.6421, allocations: 1.344 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.005e-05/0.6422, allocations: 17.11 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.6422, allocations: 4.734 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.6423, allocations: 2.797 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.6423, allocations: 2.906 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6423, allocations: 3.938 kB / 1.362 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001592/0.6424, allocations: 138.7 kB / 1.362 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.981e-05/0.6425, allocations: 84.45 kB / 1.362 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.6425, allocations: 7.766 kB / 1.362 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.6427, allocations: 30.25 kB / 1.362 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/0.6428, allocations: 34.06 kB / 1.362 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.6428, allocations: 3.703 kB / 1.362 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.894e-05/0.6428, allocations: 97.81 kB / 1.363 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001871/0.643, allocations: 32.75 kB / 1.363 GB, free: 30.68 MB / 0.8386 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.0001268/0.6432, allocations: 103.6 kB / 1.363 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000205/0.6434, allocations: 169.9 kB / 1.363 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.6434, allocations: 1.031 kB / 1.363 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.6435, allocations: 88.47 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.6436, allocations: 10.53 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000324/0.644, allocations: 148.2 kB / 1.363 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.6442, allocations: 0.7139 MB / 1.364 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6442, allocations: 0 / 1.364 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of Templates: time 0.003294/0.6475, allocations: 1.595 MB / 1.365 GB, free: 29.57 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","../files/Buildings_latest_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