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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008932/0.0008931, allocations: 98.72 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 184.2 kB / 16.92 MB, free: 6.895 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.561/2.561, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003692, allocations: 8 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8413/0.8417, allocations: 142.4 MB / 0.9557 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00194/0.8437, allocations: 1.203 MB / 0.9569 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009942/0.8447, allocations: 455.5 kB / 0.9573 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.165e-05/0.8449, allocations: 0 / 0.9573 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.845, allocations: 9.266 kB / 0.9573 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.134e-05/0.8451, allocations: 9.016 kB / 0.9573 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.8453, allocations: 38.22 kB / 0.9574 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.8455, allocations: 81.61 kB / 0.9574 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.8456, allocations: 22.78 kB / 0.9575 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.8458, allocations: 44.58 kB / 0.9575 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.458e-05/0.8459, allocations: 35.2 kB / 0.9575 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.041e-05/0.8459, allocations: 7.562 kB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.846, allocations: 4 kB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.437e-05/0.846, allocations: 8.219 kB / 0.9575 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.753e-05/0.8461, allocations: 68.78 kB / 0.9576 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.8462, allocations: 50.56 kB / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.8462, allocations: 0 / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8462, allocations: 0 / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.8462, allocations: 0 / 0.9577 GB, free: 6.191 MB / 0.7169 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.0006235/0.8469, allocations: 442.5 kB / 0.9581 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.8469, allocations: 9.781 kB / 0.9581 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.572e-05/0.847, allocations: 14.59 kB / 0.9581 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.8472, allocations: 187.9 kB / 0.9583 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.8472, allocations: 3.938 kB / 0.9583 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.8472, allocations: 14 kB / 0.9583 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.8476, allocations: 126.8 kB / 0.9584 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.8476, allocations: 0 / 0.9584 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.8476, allocations: 5.75 kB / 0.9584 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.8476, allocations: 13.69 kB / 0.9584 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.848, allocations: 104.3 kB / 0.9585 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005308/0.8485, allocations: 338.9 kB / 0.9589 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003445/0.8489, allocations: 125.8 kB / 0.959 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.8491, allocations: 77.47 kB / 0.9591 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.8491, allocations: 1.344 kB / 0.9591 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.8494, allocations: 134.5 kB / 0.9592 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.644e-06/0.8494, allocations: 0 / 0.9592 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0007424/0.8502, allocations: 302.4 kB / 0.9595 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.8502, allocations: 85.05 kB / 0.9596 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/0.8503, allocations: 131.4 kB / 0.9597 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.8504, allocations: 33.3 kB / 0.9597 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.8504, allocations: 103.2 kB / 0.9598 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.8504, allocations: 11.16 kB / 0.9598 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.8505, allocations: 18.28 kB / 0.9598 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.067e-05/0.8505, allocations: 324.5 kB / 0.9602 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.8507, allocations: 72.73 kB / 0.9602 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.8509, allocations: 73.33 kB / 0.9603 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.8513, allocations: 201.3 kB / 0.9605 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.8513, allocations: 3.938 kB / 0.9605 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004926/0.8518, allocations: 276.7 kB / 0.9607 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.704e-05/0.8518, allocations: 68.89 kB / 0.9608 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.8519, allocations: 96 / 0.9608 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.8519, allocations: 5.312 kB / 0.9608 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.852, allocations: 16.36 kB / 0.9608 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.852, allocations: 1.375 kB / 0.9608 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.8522, allocations: 39.09 kB / 0.9609 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.8522, allocations: 8.125 kB / 0.9609 GB, free: 3.5 MB / 0.7169 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.0001039/0.8523, allocations: 150.5 kB / 0.961 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.8523, allocations: 13.41 kB / 0.961 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.187e-05/0.8524, allocations: 13.73 kB / 0.9611 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.8524, allocations: 1.375 kB / 0.9611 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.8524, allocations: 0 / 0.9611 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.8524, allocations: 0 / 0.9611 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.8525, allocations: 196.7 kB / 0.9612 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.8525, allocations: 0 / 0.9612 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.444e-05/0.8526, allocations: 16.36 kB / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.8526, allocations: 0 / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.8527, allocations: 2.469 kB / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.8527, allocations: 1.125 kB / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.8527, allocations: 0 / 0.9613 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.8532, allocations: 267 kB / 0.9615 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.778e-05/0.8532, allocations: 87.34 kB / 0.9616 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.8532, allocations: 7.094 kB / 0.9616 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.8534, allocations: 27.39 kB / 0.9616 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.8535, allocations: 33.95 kB / 0.9617 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.8536, allocations: 7 kB / 0.9617 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.1e-05/0.8536, allocations: 103.8 kB / 0.9618 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8536, allocations: 3.938 kB / 0.9618 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002243/0.8539, allocations: 30.16 kB / 0.9618 GB, free: 2.688 MB / 0.7169 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.854, allocations: 101.2 kB / 0.9619 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005092/0.8545, allocations: 278.1 kB / 0.9622 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8545, allocations: 4 kB / 0.9622 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.8548, allocations: 144.4 kB / 0.9623 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.855, allocations: 17.81 kB / 0.9623 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.8555, allocations: 264.5 kB / 0.9626 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.8557, allocations: 0.6904 MB / 0.9632 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.8557, allocations: 9.562 kB / 0.9633 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of SimCode: time 6.31e-07/0.8557, allocations: 0 / 0.9633 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of Templates: time 0.003975/0.8597, allocations: 1.433 MB / 0.9647 GB, free: 0.625 MB / 0.7169 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