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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.478/2.478, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001344/0.001344, allocations: 190.5 kB / 0.4902 GB, free: 2.281 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.699/1.699, allocations: 223.1 MB / 0.7992 GB, free: 15.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.001165/0.001165, allocations: 112 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004901/0.0004901, allocations: 10.47 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4667/0.4673, allocations: 143 MB / 1.229 GB, free: 85.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/0.7016, allocations: 151 MB / 1.377 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.7019, allocations: 75.95 kB / 1.377 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.005694/0.7077, allocations: 1.561 MB / 1.378 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.675e-06/0.7077, allocations: 0 / 1.378 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.607e-05/0.7077, allocations: 4 kB / 1.378 GB, free: 12.71 MB / 0.8855 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.0007695/0.7085, allocations: 450.4 kB / 1.379 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.7086, allocations: 8.562 kB / 1.379 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.7086, allocations: 19.86 kB / 1.379 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.7089, allocations: 183.1 kB / 1.379 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.709, allocations: 7.984 kB / 1.379 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.709, allocations: 12 kB / 1.379 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.7094, allocations: 117.6 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.7094, allocations: 0 / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.7094, allocations: 4 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.7094, allocations: 0 / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003734/0.7098, allocations: 103.9 kB / 1.379 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006892/0.7105, allocations: 348.6 kB / 1.379 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.7109, allocations: 122.5 kB / 1.38 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.7109, allocations: 0 / 1.38 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003408/0.7113, allocations: 131.4 kB / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 1.984e-06/0.7113, allocations: 3.938 kB / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0008075/0.7121, allocations: 299.1 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.7122, allocations: 93.09 kB / 1.38 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.7123, allocations: 113 kB / 1.38 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.7124, allocations: 29.7 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.7124, allocations: 100 kB / 1.38 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.7125, allocations: 15.75 kB / 1.38 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.7125, allocations: 4 kB / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.7126, allocations: 322.8 kB / 1.381 GB, free: 10.04 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.7129, allocations: 71.95 kB / 1.381 GB, free: 9.969 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.7131, allocations: 71.95 kB / 1.381 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.7133, allocations: 119.3 kB / 1.381 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7133, allocations: 96 / 1.381 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005773/0.7139, allocations: 280.9 kB / 1.381 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.345e-05/0.714, allocations: 64.5 kB / 1.381 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.714, allocations: 0 / 1.381 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.714, allocations: 0 / 1.381 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.7142, allocations: 15.98 kB / 1.381 GB, free: 9.387 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.7142, allocations: 7.891 kB / 1.381 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.7144, allocations: 35.97 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.7144, allocations: 4 kB / 1.381 GB, free: 9.34 MB / 0.8855 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 () * Number of clocked 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.0001597/0.7146, allocations: 156.4 kB / 1.381 GB, free: 9.172 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.7146, allocations: 7.906 kB / 1.381 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.985e-05/0.7146, allocations: 12.38 kB / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.7146, allocations: 0 / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.7147, allocations: 0 / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.7147, allocations: 3.953 kB / 1.381 GB, free: 9.141 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.7149, allocations: 193.5 kB / 1.382 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7149, allocations: 4 kB / 1.382 GB, free: 8.898 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.572e-05/0.715, allocations: 16.23 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.715, allocations: 0 / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.715, allocations: 11.98 kB / 1.382 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.715, allocations: 0 / 1.382 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.715, allocations: 0 / 1.382 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005448/0.7156, allocations: 266.5 kB / 1.382 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.7156, allocations: 81.02 kB / 1.382 GB, free: 8.488 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.7157, allocations: 8 kB / 1.382 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.7159, allocations: 31.97 kB / 1.382 GB, free: 8.449 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.716, allocations: 35.95 kB / 1.382 GB, free: 8.414 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.716, allocations: 4 kB / 1.382 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.071e-05/0.7161, allocations: 97.52 kB / 1.382 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.61e-07/0.7161, allocations: 0 / 1.382 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002362/0.7164, allocations: 28 kB / 1.382 GB, free: 8.289 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0001698/0.7165, allocations: 115.9 kB / 1.382 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005661/0.7171, allocations: 278.6 kB / 1.383 GB, free: 7.871 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.7171, allocations: 0 / 1.383 GB, free: 7.871 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.7174, allocations: 147.4 kB / 1.383 GB, free: 7.715 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.7177, allocations: 11.98 kB / 1.383 GB, free: 7.703 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006244/0.7183, allocations: 245.1 kB / 1.383 GB, free: 7.434 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.7187, allocations: 0.6926 MB / 1.384 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.343e-05/0.7188, allocations: 8.172 kB / 1.384 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.7188, allocations: 11.44 kB / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of SimCode: time 2.806e-06/0.7188, allocations: 0 / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of Templates: time 0.004508/0.7233, allocations: 1.532 MB / 1.385 GB, free: 5.18 MB / 0.8855 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