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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001466/0.001466, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001976/0.001976, allocations: 193.9 kB / 16.14 MB, free: 6.656 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.407/1.407, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.74/2.74, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.41 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3394, allocations: 157.4 MB / 1.052 GB, free: 8.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002819/0.3422, allocations: 1.547 MB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008025/0.3431, allocations: 478.7 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.3431, allocations: 0 / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.489e-05/0.3432, allocations: 11.92 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.708e-05/0.3433, allocations: 7.875 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.3435, allocations: 27.97 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.3436, allocations: 91.73 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3437, allocations: 16.19 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.3438, allocations: 43.84 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.496e-05/0.3439, allocations: 35.83 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.3439, allocations: 8 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.709e-05/0.344, allocations: 4 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.386e-05/0.344, allocations: 23.84 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.027e-05/0.3441, allocations: 31.86 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.3442, allocations: 79.75 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3442, allocations: 0 / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.52e-07/0.3442, allocations: 4 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.3442, allocations: 0 / 1.054 GB, free: 6.457 MB / 0.8106 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.000658/0.3449, allocations: 442.9 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3449, allocations: 12.03 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.345, allocations: 8.844 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.3452, allocations: 192.1 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.3452, allocations: 12.38 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.3452, allocations: 4.375 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.3455, allocations: 121.7 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.3455, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3456, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3456, allocations: 4 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003727/0.3459, allocations: 83.92 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.3465, allocations: 340.6 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.3468, allocations: 106.5 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.347, allocations: 72.94 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.347, allocations: 8.062 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003462/0.3474, allocations: 119.3 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.3474, allocations: 0 / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006895/0.3481, allocations: 279.1 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.3482, allocations: 85.11 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.3483, allocations: 125.8 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.3483, allocations: 33.7 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.3484, allocations: 96.03 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.3484, allocations: 15.84 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.3485, allocations: 33.7 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.3486, allocations: 322.8 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.3488, allocations: 67.94 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.349, allocations: 63.95 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.3493, allocations: 185.9 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3493, allocations: 4.25 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004826/0.3498, allocations: 260.9 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.3498, allocations: 59.41 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3499, allocations: 4 kB / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.3499, allocations: 3.938 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.35, allocations: 19.97 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.35, allocations: 0 / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.3502, allocations: 23.89 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.3502, allocations: 8 kB / 1.058 GB, free: 3.012 MB / 0.8106 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.0001213/0.3503, allocations: 159.5 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.3503, allocations: 7.906 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.3504, allocations: 12.38 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3504, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3504, allocations: 3.984 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3504, allocations: 0 / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.3506, allocations: 189.6 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3506, allocations: 7.969 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.241e-05/0.3507, allocations: 15.98 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3507, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3507, allocations: 8 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3507, allocations: 3.938 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3507, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.3512, allocations: 254.5 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.3514, allocations: 81.05 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.675e-05/0.3514, allocations: 4 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.3516, allocations: 19.97 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.3517, allocations: 39.95 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.3517, allocations: 0 / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.958e-05/0.3518, allocations: 97.94 kB / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3518, allocations: 0 / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002108/0.352, allocations: 35.84 kB / 1.058 GB, free: 1.984 MB / 0.8106 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.0001045/0.3521, allocations: 107.4 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004895/0.3526, allocations: 278.5 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3526, allocations: 0 / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.3529, allocations: 135.4 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.3531, allocations: 21.36 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005199/0.3536, allocations: 221.2 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.354, allocations: 0.6965 MB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.916e-05/0.3541, allocations: 7.984 kB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.3541, allocations: 11.44 kB / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of SimCode: time 1.623e-06/0.3541, allocations: 0 / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of Templates: time 0.003886/0.358, allocations: 1.591 MB / 1.061 GB, free: 14.84 MB / 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