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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.281/2.281, allocations: 387.1 MB / 399.7 MB, free: 9.461 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009745/0.0009744, allocations: 174.6 kB / 492.3 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 221.3 MB / 0.7871 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008113/0.0008113, allocations: 81.83 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.615e-05/2.617e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.274, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8711/1.145, allocations: 150.1 MB / 1.359 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/1.145, allocations: 72.05 kB / 1.359 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006174/1.152, allocations: 1.543 MB / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.687e-06/1.152, allocations: 0 / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.304e-05/1.152, allocations: 5.438 kB / 1.361 GB, free: 34.63 MB / 0.8386 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.000547/1.152, allocations: 437.6 kB / 1.361 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/1.152, allocations: 6.844 kB / 1.361 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.478e-05/1.152, allocations: 11.66 kB / 1.361 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/1.153, allocations: 187.4 kB / 1.361 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/1.153, allocations: 3.75 kB / 1.361 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/1.153, allocations: 7.688 kB / 1.361 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/1.153, allocations: 96.03 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/1.153, allocations: 3.938 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/1.153, allocations: 11.83 kB / 1.361 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/1.153, allocations: 3.938 kB / 1.361 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/1.153, allocations: 56.09 kB / 1.361 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/1.154, allocations: 343 kB / 1.362 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/1.154, allocations: 72.44 kB / 1.362 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.032e-05/1.154, allocations: 51.61 kB / 1.362 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/1.154, allocations: 3.875 kB / 1.362 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/1.154, allocations: 104.7 kB / 1.362 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/1.154, allocations: 0 / 1.362 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002994/1.154, allocations: 182.5 kB / 1.362 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/1.154, allocations: 91.88 kB / 1.362 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.134e-05/1.154, allocations: 114.1 kB / 1.362 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/1.154, allocations: 33.42 kB / 1.362 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.968e-05/1.155, allocations: 97.66 kB / 1.362 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/1.155, allocations: 15.72 kB / 1.362 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.909e-06/1.155, allocations: 3.125 kB / 1.362 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.44e-05/1.155, allocations: 320.9 kB / 1.363 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.446e-05/1.155, allocations: 49.27 kB / 1.363 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.545e-05/1.155, allocations: 45.22 kB / 1.363 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.892e-05/1.155, allocations: 90.83 kB / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.155, allocations: 0 / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002956/1.155, allocations: 222 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/1.155, allocations: 61.98 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/1.155, allocations: 0 / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/1.155, allocations: 0 / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/1.155, allocations: 17.38 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/1.156, allocations: 7.547 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/1.156, allocations: 39.75 kB / 1.363 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/1.156, allocations: 3.562 kB / 1.363 GB, free: 32.65 MB / 0.8386 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 () * 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 8.357e-05/1.156, allocations: 142.5 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/1.156, allocations: 11.66 kB / 1.363 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/1.156, allocations: 10.28 kB / 1.363 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/1.156, allocations: 0 / 1.363 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.156, allocations: 6.562 kB / 1.363 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/1.156, allocations: 7.797 kB / 1.363 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/1.156, allocations: 190.2 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/1.156, allocations: 96 / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.208e-05/1.156, allocations: 20.55 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/1.156, allocations: 0 / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/1.156, allocations: 11.56 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/1.156, allocations: 5.25 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.156, allocations: 0 / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/1.156, allocations: 213.5 kB / 1.364 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/1.156, allocations: 82.98 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/1.156, allocations: 3.844 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/1.157, allocations: 28.52 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/1.157, allocations: 40.66 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/1.157, allocations: 0.625 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.279e-05/1.157, allocations: 103.5 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.157, allocations: 0 / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001879/1.157, allocations: 27.06 kB / 1.364 GB, free: 32.01 MB / 0.8386 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) * 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.0001097/1.157, allocations: 106.5 kB / 1.364 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002714/1.157, allocations: 224.4 kB / 1.364 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/1.157, allocations: 0 / 1.364 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/1.158, allocations: 124.5 kB / 1.365 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/1.158, allocations: 16.84 kB / 1.365 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/1.158, allocations: 155.9 kB / 1.365 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/1.158, allocations: 0.6898 MB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.259e-05/1.158, allocations: 7.078 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.841e-05/1.158, allocations: 15.31 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of SimCode: time 5.11e-07/1.158, allocations: 0 / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.0037/1.162, allocations: 1.533 MB / 1.367 GB, free: 30.79 MB / 0.8386 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","../files/Buildings_9_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