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/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 196.6 kB / 16.53 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.983/2.983, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 68.58 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3474, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003262/0.3507, allocations: 1.47 MB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009463/0.3517, allocations: 462.9 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.437e-05/0.3518, allocations: 0 / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.3519, allocations: 11.88 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.085e-05/0.352, allocations: 11.88 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.3522, allocations: 31.94 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000177/0.3524, allocations: 111.7 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.3526, allocations: 16.17 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.3527, allocations: 51.83 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.495e-05/0.3528, allocations: 39.83 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.053e-05/0.3528, allocations: 8 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.431e-05/0.3529, allocations: 15.94 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.293e-05/0.3529, allocations: 15.92 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.716e-05/0.353, allocations: 35.86 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.3532, allocations: 79.75 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3532, allocations: 0 / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3532, allocations: 0 / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3532, allocations: 0 / 1.071 GB, free: 8.016 MB / 0.8262 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.0007108/0.3539, allocations: 446.8 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.354, allocations: 12.03 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.718e-05/0.3541, allocations: 12.92 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.3543, allocations: 192.1 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.859e-05/0.3544, allocations: 8.375 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.3544, allocations: 8.375 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.3548, allocations: 121.7 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3548, allocations: 0 / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.3548, allocations: 7.938 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3548, allocations: 0 / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003427/0.3551, allocations: 91.91 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.3558, allocations: 328.8 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.3561, allocations: 114.4 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.3563, allocations: 72.94 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.3563, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003712/0.3567, allocations: 127.3 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.3567, allocations: 0 / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0007295/0.3574, allocations: 279.1 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.3575, allocations: 89.09 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.3576, allocations: 117.8 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3577, allocations: 37.69 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/0.3577, allocations: 92.05 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.3578, allocations: 23.75 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.3578, allocations: 33.7 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.358, allocations: 322.8 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.3581, allocations: 63.95 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.3583, allocations: 63.95 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.3587, allocations: 189.9 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3587, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004904/0.3592, allocations: 260.8 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.164e-05/0.3593, allocations: 59.41 kB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3593, allocations: 3.984 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3593, allocations: 4 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3594, allocations: 11.98 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3594, allocations: 4 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.3596, allocations: 19.98 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3596, allocations: 7.984 kB / 1.074 GB, free: 4.562 MB / 0.8262 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.3598, allocations: 161 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.3598, allocations: 7.906 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.3598, allocations: 16.36 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3598, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3599, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3599, allocations: 4 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.36, allocations: 197.5 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3601, allocations: 3.938 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.417e-05/0.3601, allocations: 11.98 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3602, allocations: 0 / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3602, allocations: 8 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3602, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3602, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.3607, allocations: 254.8 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.3607, allocations: 88.89 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.3608, allocations: 4 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.3609, allocations: 19.97 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3611, allocations: 39.95 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.3611, allocations: 4 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.131e-05/0.3612, allocations: 104.8 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3612, allocations: 0 / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002348/0.3614, allocations: 23.94 kB / 1.074 GB, free: 3.527 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001242/0.3615, allocations: 111.9 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005116/0.3621, allocations: 266.6 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3621, allocations: 4 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002494/0.3623, allocations: 139.4 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.3626, allocations: 18.02 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.3631, allocations: 211.2 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.3634, allocations: 0.6885 MB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.3635, allocations: 7.984 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.055e-05/0.3635, allocations: 15.44 kB / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3635, allocations: 0 / 1.076 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of Templates: time 0.004495/0.368, allocations: 1.873 MB / 1.078 GB, free: 132 kB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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