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.001558/0.001558, allocations: 107.7 kB / 16.41 MB, free: 6.508 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.001654/0.001654, allocations: 187 kB / 17.34 MB, free: 5.742 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.15 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.351/2.351, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 59.91 kB / 0.9515 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9158/0.9173, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002869/0.9202, allocations: 1.469 MB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.9211, allocations: 467 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.731e-05/0.9211, allocations: 1.25 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.9212, allocations: 9.047 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.609e-05/0.9213, allocations: 15.45 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002388/0.9215, allocations: 41.28 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.9217, allocations: 104.4 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.9219, allocations: 12.2 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.922, allocations: 48.03 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.9221, allocations: 38.56 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.4e-05/0.9222, allocations: 13.06 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.429e-05/0.9222, allocations: 7.5 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.829e-05/0.9223, allocations: 18.52 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.197e-05/0.9224, allocations: 37.52 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.9226, allocations: 82.5 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.9226, allocations: 3.938 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.904e-06/0.9226, allocations: 0 / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.9226, allocations: 1.125 kB / 1.091 GB, free: 3.98 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.0006979/0.9233, allocations: 448 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.9233, allocations: 9.906 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.9234, allocations: 10.47 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.9236, allocations: 187 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.9236, allocations: 7.469 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.9236, allocations: 7.25 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.924, allocations: 120.9 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.924, allocations: 0.5625 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.924, allocations: 10.52 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.924, allocations: 1.031 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003438/0.9244, allocations: 87.34 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005467/0.9249, allocations: 337.3 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.9253, allocations: 108.6 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.9255, allocations: 75.92 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.9255, allocations: 0.7812 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003905/0.9259, allocations: 124.5 kB / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.713e-06/0.9259, allocations: 4 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007768/0.9267, allocations: 272.1 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.9268, allocations: 86.41 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.9269, allocations: 134.8 kB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.9269, allocations: 28.7 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.927, allocations: 101.8 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.927, allocations: 16.52 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.561e-05/0.9271, allocations: 31.83 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.895e-05/0.9271, allocations: 319.8 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.9273, allocations: 66.42 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.9275, allocations: 71.52 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.9279, allocations: 182.8 kB / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.9279, allocations: 0 / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005419/0.9284, allocations: 262.1 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.9285, allocations: 65.94 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.9285, allocations: 0.75 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.9285, allocations: 0.6562 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.9287, allocations: 18.14 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.9287, allocations: 1.219 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.9289, allocations: 28.22 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.9289, allocations: 8.344 kB / 1.094 GB, free: 1.609 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.0001065/0.929, allocations: 160.4 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.929, allocations: 9.219 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.9291, allocations: 11.92 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.9291, allocations: 5.188 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.9291, allocations: 0 / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.9291, allocations: 0.7969 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.9293, allocations: 196.7 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9293, allocations: 0 / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.794e-05/0.9294, allocations: 12.88 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.9294, allocations: 0.6094 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.9294, allocations: 2.859 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.9294, allocations: 1.469 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.9294, allocations: 0.6875 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.9299, allocations: 253.4 kB / 1.095 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.93, allocations: 88.56 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.93, allocations: 2.5 kB / 1.095 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.9302, allocations: 27.34 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.9303, allocations: 37 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.9304, allocations: 8.547 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.735e-05/0.9304, allocations: 99.19 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9304, allocations: 0.9688 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002301/0.9307, allocations: 24.97 kB / 1.095 GB, free: 0.8672 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.0001109/0.9308, allocations: 107.3 kB / 1.095 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000538/0.9313, allocations: 264.1 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.9313, allocations: 0 / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.9316, allocations: 139.6 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.9318, allocations: 14.09 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005706/0.9324, allocations: 242.3 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.9327, allocations: 0.6964 MB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.785e-05/0.9327, allocations: 13.34 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.9327, allocations: 0 / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of Templates: time 0.004068/0.9368, allocations: 1.439 MB / 1.098 GB, free: 15.5 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