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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001048/0.001048, allocations: 176.5 kB / 487.4 MB, free: 5.051 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.539/1.539, allocations: 221.5 MB / 0.7824 GB, free: 0.9336 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.0009482/0.0009482, allocations: 87.91 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.732e-05/1.734e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2812, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8642/1.145, allocations: 149.5 MB / 1.352 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/1.146, allocations: 75.77 kB / 1.352 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005337/1.151, allocations: 1.532 MB / 1.353 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.294e-06/1.151, allocations: 1.641 kB / 1.353 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.758e-06/1.151, allocations: 0 / 1.353 GB, free: 33.98 MB / 0.8386 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.0005165/1.152, allocations: 432.9 kB / 1.354 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/1.152, allocations: 12.16 kB / 1.354 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/1.152, allocations: 8.375 kB / 1.354 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/1.152, allocations: 203 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/1.152, allocations: 0 / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/1.152, allocations: 8.484 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001426/1.152, allocations: 52.62 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/1.152, allocations: 90.41 kB / 1.354 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/1.152, allocations: 0 / 1.354 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/1.152, allocations: 3.906 kB / 1.354 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/1.152, allocations: 0.7969 kB / 1.354 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/1.153, allocations: 321.2 kB / 1.355 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/1.153, allocations: 72.39 kB / 1.355 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.972e-05/1.153, allocations: 51.22 kB / 1.355 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/1.153, allocations: 0 / 1.355 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001786/1.153, allocations: 102.2 kB / 1.355 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/1.153, allocations: 3.906 kB / 1.355 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003132/1.154, allocations: 140.4 kB / 1.355 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/1.154, allocations: 86.03 kB / 1.355 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.866e-05/1.154, allocations: 119.4 kB / 1.355 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/1.154, allocations: 30.12 kB / 1.355 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/1.154, allocations: 100 kB / 1.355 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/1.154, allocations: 16.73 kB / 1.355 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/1.154, allocations: 6.812 kB / 1.355 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.154, allocations: 321.1 kB / 1.356 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.227e-05/1.154, allocations: 43.33 kB / 1.356 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.46e-05/1.154, allocations: 39.39 kB / 1.356 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.431e-05/1.154, allocations: 23 kB / 1.356 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.154, allocations: 3.844 kB / 1.356 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000238/1.155, allocations: 154.3 kB / 1.356 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/1.155, allocations: 60.98 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/1.155, allocations: 1.25 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.155, allocations: 4 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/1.155, allocations: 16.66 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/1.155, allocations: 3.875 kB / 1.356 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/1.155, allocations: 36.94 kB / 1.356 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/1.155, allocations: 8.672 kB / 1.356 GB, free: 32.19 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 0.0001047/1.155, allocations: 143.2 kB / 1.356 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/1.155, allocations: 7.719 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/1.155, allocations: 13.19 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/1.155, allocations: 4.547 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.155, allocations: 0 / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.155, allocations: 0.6094 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001359/1.155, allocations: 170.3 kB / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.155, allocations: 0 / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.901e-05/1.155, allocations: 20.06 kB / 1.356 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/1.155, allocations: 1.344 kB / 1.356 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/1.156, allocations: 4.281 kB / 1.356 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/1.156, allocations: 3.781 kB / 1.356 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.156, allocations: 0 / 1.356 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/1.156, allocations: 171.6 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.733e-05/1.156, allocations: 89.42 kB / 1.357 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/1.156, allocations: 4.391 kB / 1.357 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/1.156, allocations: 29.84 kB / 1.357 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/1.156, allocations: 37.16 kB / 1.357 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/1.156, allocations: 4.469 kB / 1.357 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.8e-05/1.156, allocations: 95.8 kB / 1.357 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.156, allocations: 0 / 1.357 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002166/1.156, allocations: 27.75 kB / 1.357 GB, free: 31.61 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.0001414/1.157, allocations: 107.5 kB / 1.357 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002521/1.157, allocations: 217.5 kB / 1.357 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.157, allocations: 0 / 1.357 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001236/1.157, allocations: 119.8 kB / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/1.157, allocations: 24.78 kB / 1.357 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/1.158, allocations: 142.2 kB / 1.357 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/1.158, allocations: 0.6974 MB / 1.358 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.684e-05/1.158, allocations: 6.922 kB / 1.358 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/1.158, allocations: 12.06 kB / 1.358 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of SimCode: time 3.3e-07/1.158, allocations: 0 / 1.358 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of Templates: time 0.004111/1.162, allocations: 1.43 MB / 1.359 GB, free: 30.4 MB / 0.8386 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