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.001155/0.001155, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001367/0.001367, allocations: 191 kB / 16.25 MB, free: 6.637 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.729/2.729, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.001351, allocations: 63.03 kB / 0.8986 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3152, allocations: 157.4 MB / 1.052 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003016/0.3182, allocations: 1.541 MB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008307/0.3191, allocations: 475.2 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.799e-05/0.3192, allocations: 0 / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.918e-05/0.3193, allocations: 3.938 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.121e-05/0.3194, allocations: 11.92 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.3196, allocations: 35.89 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.3197, allocations: 107.7 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3199, allocations: 8.172 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.32, allocations: 47.84 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.829e-05/0.3201, allocations: 47.81 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.3202, allocations: 8 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.3202, allocations: 8 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.114e-05/0.3202, allocations: 15.92 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.117e-05/0.3203, allocations: 39.86 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.3204, allocations: 83.75 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3204, allocations: 0 / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3204, allocations: 0 / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.3205, allocations: 0 / 1.055 GB, free: 6.312 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.000701/0.3212, allocations: 447.9 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3212, allocations: 8.031 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.3213, allocations: 8.844 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.3214, allocations: 188.2 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.3215, allocations: 12.38 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.3215, allocations: 8.375 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.3218, allocations: 113.7 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.3218, allocations: 0 / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3219, allocations: 11.98 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.3219, allocations: 0 / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.3222, allocations: 91.92 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005501/0.3227, allocations: 324.7 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.3231, allocations: 114.4 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.3233, allocations: 76.94 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.3233, allocations: 0 / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003641/0.3237, allocations: 119.3 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.3237, allocations: 0 / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0007466/0.3244, allocations: 287.1 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.3245, allocations: 81.11 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.3246, allocations: 131.8 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.3247, allocations: 25.7 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.864e-05/0.3247, allocations: 100 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3248, allocations: 15.84 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.3249, allocations: 29.7 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.325, allocations: 322.8 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.3252, allocations: 68.2 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.3254, allocations: 71.88 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/0.3258, allocations: 181.9 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3258, allocations: 0 / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005273/0.3263, allocations: 260.8 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.941e-05/0.3264, allocations: 67.39 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3264, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3264, allocations: 4 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.3265, allocations: 11.98 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.3265, allocations: 0 / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.3267, allocations: 31.88 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3267, allocations: 4 kB / 1.058 GB, free: 2.871 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.0001471/0.3269, allocations: 167.3 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.3269, allocations: 7.906 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.406e-05/0.327, allocations: 12.38 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.327, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.327, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.327, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.3272, allocations: 197.6 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3272, allocations: 4 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.65e-05/0.3273, allocations: 11.98 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3273, allocations: 0 / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.3273, allocations: 7.984 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3273, allocations: 3.938 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3273, allocations: 0 / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.3278, allocations: 254.6 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.3279, allocations: 84.98 kB / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.3279, allocations: 8.094 kB / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.3281, allocations: 23.91 kB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3282, allocations: 35.97 kB / 1.058 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.3282, allocations: 7.984 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.3283, allocations: 95.27 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3283, allocations: 0 / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002247/0.3285, allocations: 35.84 kB / 1.059 GB, free: 1.824 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.0001229/0.3287, allocations: 99.25 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005347/0.3292, allocations: 270.7 kB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3292, allocations: 4 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.3295, allocations: 135.3 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.3297, allocations: 18.67 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005511/0.3303, allocations: 231.4 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.3306, allocations: 0.6924 MB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.662e-05/0.3307, allocations: 4 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.3307, allocations: 15.42 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3307, allocations: 0 / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of Templates: time 0.004508/0.3352, allocations: 1.684 MB / 1.062 GB, free: 14.6 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