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.000835/0.0008352, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.0009896/0.0009897, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.981/2.981, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.000375, allocations: 9.156 kB / 0.9021 GB, free: 36.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4094, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001685/0.4112, allocations: 1.198 MB / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007262/0.4119, allocations: 431.1 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.857e-05/0.412, allocations: 0 / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.109e-05/0.4121, allocations: 3.938 kB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.629e-05/0.4121, allocations: 11.92 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002274/0.4124, allocations: 35.95 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.4125, allocations: 79.77 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.4126, allocations: 12.17 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.4127, allocations: 39.84 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.81e-05/0.4128, allocations: 43.81 kB / 1.06 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.4129, allocations: 4 kB / 1.06 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.584e-05/0.4129, allocations: 4 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.4129, allocations: 7.984 kB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.413, allocations: 45.64 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.883e-05/0.4131, allocations: 47.91 kB / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.4131, allocations: 0 / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4131, allocations: 0 / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.4131, allocations: 0 / 1.06 GB, free: 3.371 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.0007094/0.4138, allocations: 442.8 kB / 1.06 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4139, allocations: 12.03 kB / 1.06 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.414, allocations: 7.906 kB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.4142, allocations: 191 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.4142, allocations: 7.938 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.4142, allocations: 11.95 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.4146, allocations: 121.6 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.4146, allocations: 7.938 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.4146, allocations: 0 / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.4146, allocations: 4 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.4149, allocations: 99.92 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.4155, allocations: 340.7 kB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.4158, allocations: 126.4 kB / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.416, allocations: 80.94 kB / 1.061 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.416, allocations: 4 kB / 1.061 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.4163, allocations: 127.3 kB / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.4164, allocations: 0 / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006863/0.417, allocations: 299.1 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.661e-05/0.4171, allocations: 85.11 kB / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.4173, allocations: 129.8 kB / 1.062 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.4173, allocations: 33.7 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.4174, allocations: 88.2 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.4174, allocations: 23.73 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.4174, allocations: 4 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.4175, allocations: 322.8 kB / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.4177, allocations: 79.94 kB / 1.062 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.4179, allocations: 67.95 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.4181, allocations: 115.4 kB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4181, allocations: 0 / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004811/0.4186, allocations: 268.8 kB / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.4187, allocations: 67.39 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.4187, allocations: 4 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.4187, allocations: 4 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.4189, allocations: 15.98 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4189, allocations: 96 / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.419, allocations: 39.81 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.4191, allocations: 4 kB / 1.063 GB, free: 15.92 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.4192, allocations: 163.5 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.4192, allocations: 7.938 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.4193, allocations: 8.375 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.4193, allocations: 8.188 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4193, allocations: 0 / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4193, allocations: 7.984 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.4194, allocations: 197.5 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4195, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.016e-05/0.4196, allocations: 19.98 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.4196, allocations: 0 / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.4196, allocations: 0 / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.4196, allocations: 7.984 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4196, allocations: 0 / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.4201, allocations: 258.7 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.4201, allocations: 84.95 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.4202, allocations: 8 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.4203, allocations: 31.97 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.4205, allocations: 31.95 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.4205, allocations: 11.94 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.231e-05/0.4205, allocations: 97.52 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4206, allocations: 0 / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002013/0.4208, allocations: 28 kB / 1.064 GB, free: 14.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001285/0.4209, allocations: 95.25 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000527/0.4214, allocations: 286.7 kB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4214, allocations: 0 / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.4217, allocations: 147.3 kB / 1.064 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.422, allocations: 17.7 kB / 1.064 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00054/0.4225, allocations: 241.1 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.4228, allocations: 0.6848 MB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.417e-05/0.4229, allocations: 16.11 kB / 1.065 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.4229, allocations: 11.44 kB / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4229, allocations: 0 / 1.065 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of Templates: time 0.004308/0.4272, allocations: 1.543 MB / 1.067 GB, free: 11.75 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