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.001034/0.001034, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0009489/0.000949, allocations: 177.3 kB / 15.94 MB, free: 220 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.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.714/2.714, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003795, allocations: 12 kB / 0.8707 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7826/0.783, allocations: 153.7 MB / 1.021 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001541/0.7846, allocations: 1.184 MB / 1.022 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.7853, allocations: 431.4 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.913e-05/0.7853, allocations: 0 / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.516e-05/0.7854, allocations: 3.984 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.124e-05/0.7855, allocations: 19.91 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001694/0.7857, allocations: 31.91 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.7858, allocations: 55.86 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.722e-05/0.7859, allocations: 16.11 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.786, allocations: 35.91 kB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.605e-05/0.7861, allocations: 31.89 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.7861, allocations: 4 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.571e-05/0.7861, allocations: 8 kB / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.7862, allocations: 19.91 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.456e-05/0.7862, allocations: 41.64 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.359e-05/0.7863, allocations: 43.91 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.7863, allocations: 0 / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.7863, allocations: 0 / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.7863, allocations: 0 / 1.023 GB, free: 15.31 MB / 0.7794 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.0006003/0.7869, allocations: 440.6 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.787, allocations: 15.98 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.787, allocations: 7.906 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.7872, allocations: 198.9 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.7873, allocations: 4 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.7873, allocations: 8 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.7876, allocations: 125.6 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.7876, allocations: 3.938 kB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.7876, allocations: 3.984 kB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.7876, allocations: 0 / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.7879, allocations: 107.9 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.7885, allocations: 332.8 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.7888, allocations: 126.5 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.7889, allocations: 0 / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.7892, allocations: 139.3 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.7892, allocations: 0 / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0007257/0.7899, allocations: 295.2 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.79, allocations: 81.11 kB / 1.024 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.7902, allocations: 136.1 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.7902, allocations: 33.7 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.7903, allocations: 96.12 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.7903, allocations: 19.88 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.7903, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.7905, allocations: 322.8 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.7906, allocations: 75.89 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.7908, allocations: 71.95 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.791, allocations: 119.4 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7911, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005105/0.7916, allocations: 276.9 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.7916, allocations: 67.39 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.7917, allocations: 80 / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.7917, allocations: 0 / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.7918, allocations: 19.98 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.7918, allocations: 3.984 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.792, allocations: 31.91 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.792, allocations: 8 kB / 1.026 GB, free: 11.93 MB / 0.7794 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.0001683/0.7922, allocations: 159.5 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.911e-05/0.7922, allocations: 11.91 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.01e-05/0.7922, allocations: 12.38 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.7922, allocations: 0 / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7923, allocations: 0 / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.7923, allocations: 0 / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.7924, allocations: 189.9 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.7925, allocations: 7.891 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.158e-05/0.7926, allocations: 19.98 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.7926, allocations: 0 / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.7926, allocations: 11.98 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.7926, allocations: 0 / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.7926, allocations: 3.938 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005407/0.7932, allocations: 258.6 kB / 1.026 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.7932, allocations: 88.97 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.7933, allocations: 4 kB / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.7934, allocations: 27.97 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.7935, allocations: 35.95 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.7936, allocations: 4 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.182e-05/0.7936, allocations: 99.27 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7936, allocations: 0 / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002182/0.7939, allocations: 28 kB / 1.027 GB, free: 10.88 MB / 0.7794 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.0001099/0.794, allocations: 103.2 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005157/0.7945, allocations: 286.6 kB / 1.027 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.7945, allocations: 0 / 1.027 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.7948, allocations: 139.4 kB / 1.027 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.7949, allocations: 19.98 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.7954, allocations: 237.1 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.7958, allocations: 0.6926 MB / 1.028 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.027e-05/0.7958, allocations: 12.17 kB / 1.028 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.7959, allocations: 7.438 kB / 1.028 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7959, allocations: 0 / 1.028 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of Templates: time 0.0039/0.7998, allocations: 1.542 MB / 1.03 GB, free: 7.77 MB / 0.7794 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","../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