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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.605/1.605, allocations: 249.5 MB / 257 MB, free: 6.969 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.001027/0.001027, allocations: 179.6 kB / 316.3 MB, free: 3.312 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.84/1.84, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.001044/0.001044, allocations: 94.67 kB / 0.6714 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.557e-05/1.559e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2527, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8021/1.055, allocations: 132.9 MB / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/1.055, allocations: 70.58 kB / 1.015 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004706/1.06, allocations: 1.51 MB / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.382e-06/1.06, allocations: 0 / 1.017 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.668e-06/1.06, allocations: 0 / 1.017 GB, free: 3.582 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.0005933/1.061, allocations: 433 kB / 1.017 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/1.061, allocations: 12.02 kB / 1.017 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/1.061, allocations: 4 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/1.061, allocations: 198.9 kB / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/1.061, allocations: 0 / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/1.061, allocations: 8 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001514/1.061, allocations: 47.48 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/1.061, allocations: 88.64 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/1.061, allocations: 4 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/1.061, allocations: 4 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/1.061, allocations: 0 / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/1.062, allocations: 316.1 kB / 1.018 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/1.062, allocations: 77.56 kB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.158e-05/1.062, allocations: 52.28 kB / 1.018 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/1.062, allocations: 0 / 1.018 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/1.062, allocations: 98.75 kB / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/1.062, allocations: 0 / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003137/1.063, allocations: 135.7 kB / 1.018 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/1.063, allocations: 81.05 kB / 1.018 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/1.063, allocations: 126.8 kB / 1.018 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/1.063, allocations: 29.7 kB / 1.018 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/1.063, allocations: 94.62 kB / 1.018 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/1.063, allocations: 19.69 kB / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/1.063, allocations: 0 / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001236/1.063, allocations: 326.6 kB / 1.019 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.164e-05/1.063, allocations: 40.23 kB / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.752e-05/1.063, allocations: 47.48 kB / 1.019 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.182e-05/1.063, allocations: 30.7 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/1.063, allocations: 0 / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002468/1.064, allocations: 153.9 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/1.064, allocations: 62.78 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/1.064, allocations: 0 / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/1.064, allocations: 0 / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/1.064, allocations: 19.98 kB / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/1.064, allocations: 0 / 1.019 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/1.064, allocations: 35.28 kB / 1.019 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/1.064, allocations: 7.953 kB / 1.019 GB, free: 1.086 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.0001395/1.064, allocations: 141.9 kB / 1.019 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.94e-05/1.064, allocations: 7.906 kB / 1.019 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/1.064, allocations: 11.69 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/1.064, allocations: 0 / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/1.064, allocations: 2.312 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/1.064, allocations: 4 kB / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/1.064, allocations: 176.3 kB / 1.019 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/1.064, allocations: 0 / 1.019 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.701e-05/1.065, allocations: 19.92 kB / 1.019 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/1.065, allocations: 0 / 1.019 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/1.065, allocations: 6.312 kB / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/1.065, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.065, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/1.065, allocations: 171.8 kB / 1.019 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/1.065, allocations: 91.94 kB / 1.02 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/1.065, allocations: 0 / 1.02 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/1.065, allocations: 31.91 kB / 1.02 GB, free: 408 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/1.065, allocations: 39.14 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/1.065, allocations: 12.12 kB / 1.02 GB, free: 368 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.159e-05/1.065, allocations: 93 kB / 1.02 GB, free: 284 kB / 0.6355 GB Notification: Performance of sort global known variables: time 2.6e-07/1.065, allocations: 0 / 1.02 GB, free: 284 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002028/1.066, allocations: 27.98 kB / 1.02 GB, free: 256 kB / 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.000136/1.066, allocations: 118.3 kB / 1.02 GB, free: 132 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002919/1.066, allocations: 215.2 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/1.066, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/1.066, allocations: 114.8 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000169/1.066, allocations: 23.64 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/1.067, allocations: 143.6 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/1.067, allocations: 0.6885 MB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.415e-05/1.067, allocations: 12.17 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/1.067, allocations: 7.438 kB / 1.021 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/1.067, allocations: 4 kB / 1.021 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of Templates: time 0.003633/1.071, allocations: 1.421 MB / 1.022 GB, free: 13.52 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