Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001464/0.001464, allocations: 109 kB / 16.41 MB, free: 6.496 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.001379/0.001379, allocations: 187 kB / 17.34 MB, free: 5.762 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.301/2.301, allocations: 390.2 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 67.89 kB / 0.9515 GB, free: 7.727 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9943/0.9959, allocations: 140.4 MB / 1.089 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002836/0.9987, allocations: 1.47 MB / 1.09 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008086/0.9996, allocations: 466.8 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.9996, allocations: 1.312 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.9998, allocations: 9.203 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.365e-05/0.9998, allocations: 18.38 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/1, allocations: 34.14 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001857/1, allocations: 103.4 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/1, allocations: 18.02 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/1.001, allocations: 47.28 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/1.001, allocations: 35.41 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/1.001, allocations: 7.375 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.204e-05/1.001, allocations: 8.031 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.339e-05/1.001, allocations: 22.62 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.364e-05/1.001, allocations: 38.47 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/1.001, allocations: 85.64 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.001, allocations: 1.125 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.323e-06/1.001, allocations: 0 / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.282e-06/1.001, allocations: 4 kB / 1.091 GB, free: 4.008 MB / 0.8575 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.0006854/1.002, allocations: 445.1 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/1.002, allocations: 8.719 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.035e-05/1.002, allocations: 10.31 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/1.002, allocations: 192 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/1.002, allocations: 7.688 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.219e-05/1.002, allocations: 5.969 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/1.002, allocations: 129.8 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/1.002, allocations: 0.5156 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/1.002, allocations: 2.406 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/1.002, allocations: 0.8125 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/1.003, allocations: 86.2 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/1.003, allocations: 343.3 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/1.004, allocations: 104.1 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/1.004, allocations: 75.62 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/1.004, allocations: 0.7188 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/1.004, allocations: 128.8 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/1.004, allocations: 0 / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007538/1.005, allocations: 272.2 kB / 1.093 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/1.005, allocations: 89.83 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.878e-05/1.005, allocations: 135.3 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/1.005, allocations: 32.64 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.404e-05/1.005, allocations: 93.45 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/1.005, allocations: 17.69 kB / 1.093 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/1.005, allocations: 31.31 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.356e-05/1.005, allocations: 323.5 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/1.006, allocations: 63.14 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/1.006, allocations: 70.61 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/1.006, allocations: 178.6 kB / 1.094 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.006, allocations: 3.938 kB / 1.094 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005173/1.007, allocations: 266.4 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/1.007, allocations: 66.27 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/1.007, allocations: 1.094 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/1.007, allocations: 0 / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/1.007, allocations: 18.64 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/1.007, allocations: 0.8125 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/1.007, allocations: 23.86 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/1.007, allocations: 3.625 kB / 1.094 GB, free: 1.641 MB / 0.8575 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.0001086/1.007, allocations: 165.5 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/1.007, allocations: 8.844 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.193e-05/1.007, allocations: 11.75 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/1.007, allocations: 0.7812 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.007, allocations: 5.5 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/1.007, allocations: 0 / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/1.007, allocations: 196.6 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/1.007, allocations: 0 / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.397e-05/1.007, allocations: 12.83 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/1.007, allocations: 0.8125 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/1.007, allocations: 11.36 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/1.007, allocations: 0.6562 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.008, allocations: 1.156 kB / 1.094 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/1.008, allocations: 244.8 kB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/1.008, allocations: 84.23 kB / 1.095 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/1.008, allocations: 7.5 kB / 1.095 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/1.008, allocations: 22.75 kB / 1.095 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/1.008, allocations: 40.89 kB / 1.095 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/1.008, allocations: 3.797 kB / 1.095 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.091e-05/1.008, allocations: 100.5 kB / 1.095 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.008, allocations: 0.625 kB / 1.095 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002122/1.009, allocations: 25.03 kB / 1.095 GB, free: 0.8984 MB / 0.8575 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.0001058/1.009, allocations: 104.6 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005469/1.009, allocations: 265.2 kB / 1.095 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/1.009, allocations: 0 / 1.095 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002591/1.01, allocations: 143.3 kB / 1.095 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/1.01, allocations: 16.95 kB / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005324/1.01, allocations: 250.4 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/1.011, allocations: 0.6897 MB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/1.011, allocations: 16.05 kB / 1.096 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.011, allocations: 3.938 kB / 1.096 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of Templates: time 0.004126/1.015, allocations: 1.431 MB / 1.098 GB, free: 15.53 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches