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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009428/0.0009428, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00728/0.00728, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.737/2.737, allocations: 462.6 MB / 0.7363 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005803/0.0005805, allocations: 8.281 kB / 0.9027 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3702, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001696/0.372, allocations: 1.198 MB / 1.06 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008116/0.3728, allocations: 470.8 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.587e-05/0.3729, allocations: 0 / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.185e-05/0.373, allocations: 7.938 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.946e-05/0.373, allocations: 11.91 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.3732, allocations: 31.97 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.3734, allocations: 91.7 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.621e-05/0.3735, allocations: 12.12 kB / 1.06 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.3736, allocations: 43.83 kB / 1.06 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.3737, allocations: 39.83 kB / 1.06 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.3738, allocations: 4 kB / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.617e-05/0.3738, allocations: 4 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.3738, allocations: 19.92 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.3739, allocations: 61.55 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3741, allocations: 67.75 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3741, allocations: 0 / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.397e-06/0.3741, allocations: 4 kB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.381e-06/0.3741, allocations: 0 / 1.061 GB, free: 2.883 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.0006396/0.3747, allocations: 442.9 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3748, allocations: 8.031 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/0.3748, allocations: 12.84 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.375, allocations: 196.2 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.3751, allocations: 4.375 kB / 1.061 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.3751, allocations: 4.375 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.3754, allocations: 129.7 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.3754, allocations: 4 kB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.3755, allocations: 4 kB / 1.061 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3755, allocations: 3.938 kB / 1.061 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.3758, allocations: 103.9 kB / 1.061 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.3764, allocations: 336.8 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.3767, allocations: 126.4 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.3769, allocations: 76.94 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.3769, allocations: 4 kB / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003273/0.3773, allocations: 127.3 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.773e-06/0.3773, allocations: 0 / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0007381/0.378, allocations: 299.2 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3781, allocations: 93.05 kB / 1.062 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.3782, allocations: 128.4 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.3783, allocations: 29.7 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.3783, allocations: 96.03 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.3783, allocations: 19.83 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.3784, allocations: 17.72 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3785, allocations: 326.8 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.3787, allocations: 75.94 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002037/0.3789, allocations: 72.03 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.3793, allocations: 201.9 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3793, allocations: 0 / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005219/0.3798, allocations: 280.8 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.355e-05/0.3799, allocations: 68.95 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.3799, allocations: 0 / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.3799, allocations: 0 / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3801, allocations: 19.98 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3801, allocations: 0 / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.3803, allocations: 31.97 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.3803, allocations: 4 kB / 1.064 GB, free: 15.31 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.0001283/0.3804, allocations: 159.4 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3805, allocations: 11.91 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.3805, allocations: 12.36 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3805, allocations: 3.984 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3805, allocations: 4 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3805, allocations: 4.25 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.3807, allocations: 189.5 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3807, allocations: 4 kB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-05/0.3808, allocations: 19.92 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3808, allocations: 0 / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3808, allocations: 8 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3808, allocations: 0 / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3808, allocations: 0 / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005107/0.3814, allocations: 266.6 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.3814, allocations: 92.94 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.3815, allocations: 7.938 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.3816, allocations: 23.98 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.3817, allocations: 35.95 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3818, allocations: 7.938 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.016e-05/0.3818, allocations: 99.27 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3818, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002181/0.3821, allocations: 31.92 kB / 1.065 GB, free: 14.24 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.0001077/0.3822, allocations: 103.2 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005326/0.3827, allocations: 278.7 kB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3827, allocations: 0 / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.383, allocations: 143.3 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.3832, allocations: 18.52 kB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005013/0.3837, allocations: 245.2 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.384, allocations: 0.6887 MB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.264e-05/0.3841, allocations: 8 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.3841, allocations: 15.42 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.3841, allocations: 0 / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of Templates: time 0.004088/0.3882, allocations: 1.573 MB / 1.068 GB, free: 11.1 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