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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 109.5 kB / 16.42 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 189.5 kB / 17.35 MB, free: 5.73 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.338/1.338, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.315/2.315, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6771/0.6783, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002183/0.6806, allocations: 1.468 MB / 1.09 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006089/0.6812, allocations: 467.8 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.459e-05/0.6812, allocations: 4.969 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.53e-05/0.6813, allocations: 5.344 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.301e-05/0.6814, allocations: 11.3 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.6816, allocations: 44.88 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.6817, allocations: 97.5 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.925e-05/0.6818, allocations: 12.66 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.6819, allocations: 50.45 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.132e-05/0.682, allocations: 39.12 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.6821, allocations: 12.56 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.977e-05/0.6821, allocations: 7.438 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.373e-05/0.6821, allocations: 19.77 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.198e-05/0.6822, allocations: 37.2 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.6824, allocations: 82.47 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.6824, allocations: 0 / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.6824, allocations: 0 / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.6824, allocations: 4.688 kB / 1.091 GB, free: 3.973 MB / 0.8575 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.000593/0.683, allocations: 452.7 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.683, allocations: 8.688 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.6831, allocations: 10 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.6832, allocations: 187.4 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.6832, allocations: 4.438 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.6833, allocations: 10.19 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.6836, allocations: 117.6 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.6836, allocations: 0 / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.6836, allocations: 10.67 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.6836, allocations: 5.062 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003061/0.6839, allocations: 94.06 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004692/0.6844, allocations: 331.8 kB / 1.092 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.6847, allocations: 107.1 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.6849, allocations: 72.28 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.685, allocations: 0.8438 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.6853, allocations: 124.3 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.6853, allocations: 0.9375 kB / 1.092 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007261/0.686, allocations: 275.1 kB / 1.093 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.6861, allocations: 86.38 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.6862, allocations: 134.7 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.6862, allocations: 28.62 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.6862, allocations: 98.06 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.6862, allocations: 16.83 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/0.6863, allocations: 32.06 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.904e-05/0.6863, allocations: 322.8 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.6865, allocations: 71.36 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.6867, allocations: 63.05 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.687, allocations: 186.1 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.6871, allocations: 0.6562 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004864/0.6875, allocations: 261.6 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.6876, allocations: 66.08 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.6876, allocations: 5.516 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.6876, allocations: 3.938 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.6878, allocations: 14.83 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.6878, allocations: 4.656 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.6879, allocations: 28.22 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.688, allocations: 7.734 kB / 1.094 GB, free: 1.594 MB / 0.8575 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 8.296e-05/0.688, allocations: 152.7 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.152e-05/0.6881, allocations: 9.859 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.572e-05/0.6881, allocations: 11.39 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.6881, allocations: 0.6094 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.6881, allocations: 5.094 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.6881, allocations: 83.95 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.6882, allocations: 10.91 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.6883, allocations: 18.92 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.6885, allocations: 41.75 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005729/0.689, allocations: 351.8 kB / 1.095 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000489/0.6895, allocations: 391.3 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002068/0.6898, allocations: 81.38 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.427e-05/0.6898, allocations: 104.6 kB / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of Backend: time 3.01e-07/0.6898, allocations: 0 / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005426/0.6904, allocations: 285.8 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of SimCode: time 0.0004435/0.6908, allocations: 0.6668 MB / 1.096 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of Templates: time 0.004826/0.6957, allocations: 2.039 MB / 1.098 GB, free: 15.62 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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