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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.332/2.332, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.001254/0.001254, allocations: 180.8 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 221.3 MB / 0.7915 GB, free: 5.426 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.0009238/0.0009238, allocations: 87.94 kB / 0.9317 GB, free: 5.746 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.211e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3022, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9375/1.24, allocations: 150.9 MB / 1.366 GB, free: 3.125 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/1.24, allocations: 74.16 kB / 1.366 GB, free: 3.086 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004932/1.245, allocations: 1.546 MB / 1.368 GB, free: 1.734 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.643e-06/1.245, allocations: 4 kB / 1.368 GB, free: 1.73 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.757e-06/1.245, allocations: 0 / 1.368 GB, free: 1.73 MB / 0.823 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.0005689/1.246, allocations: 433.4 kB / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/1.246, allocations: 8.031 kB / 1.368 GB, free: 1.25 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.478e-05/1.246, allocations: 19.8 kB / 1.368 GB, free: 1.23 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/1.246, allocations: 187.4 kB / 1.368 GB, free: 1.012 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/1.246, allocations: 11.56 kB / 1.368 GB, free: 1.004 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/1.246, allocations: 4 kB / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/1.246, allocations: 96.47 kB / 1.368 GB, free: 0.918 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/1.246, allocations: 0 / 1.368 GB, free: 0.918 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/1.246, allocations: 3.625 kB / 1.368 GB, free: 0.918 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/1.246, allocations: 0 / 1.368 GB, free: 0.918 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/1.246, allocations: 50.92 kB / 1.368 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/1.247, allocations: 351.1 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/1.247, allocations: 73.31 kB / 1.369 GB, free: 464 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.735e-05/1.247, allocations: 52.05 kB / 1.369 GB, free: 428 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/1.247, allocations: 4 kB / 1.369 GB, free: 424 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/1.248, allocations: 107.1 kB / 1.369 GB, free: 320 kB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/1.248, allocations: 4 kB / 1.369 GB, free: 316 kB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0003372/1.248, allocations: 174 kB / 1.369 GB, free: 156 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/1.248, allocations: 88.28 kB / 1.369 GB, free: 52 kB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/1.248, allocations: 117.4 kB / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/1.248, allocations: 33.08 kB / 1.369 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/1.248, allocations: 94.23 kB / 1.37 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/1.248, allocations: 15.45 kB / 1.37 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/1.248, allocations: 8 kB / 1.37 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001182/1.248, allocations: 318.4 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.465e-05/1.248, allocations: 50.36 kB / 1.37 GB, free: 15.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.14e-05/1.249, allocations: 49.42 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.294e-05/1.249, allocations: 89.2 kB / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.249, allocations: 0 / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002942/1.249, allocations: 216.2 kB / 1.37 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.216e-05/1.249, allocations: 64.48 kB / 1.37 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/1.249, allocations: 4 kB / 1.37 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/1.249, allocations: 0 / 1.37 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/1.249, allocations: 27.88 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/1.249, allocations: 0 / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/1.249, allocations: 33.94 kB / 1.37 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/1.249, allocations: 6.25 kB / 1.37 GB, free: 14.98 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 0.0001049/1.25, allocations: 145.9 kB / 1.371 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/1.25, allocations: 11.16 kB / 1.371 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/1.25, allocations: 12.31 kB / 1.371 GB, free: 14.81 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/1.25, allocations: 0 / 1.371 GB, free: 14.81 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.25, allocations: 3.953 kB / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/1.25, allocations: 0 / 1.371 GB, free: 14.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/1.25, allocations: 191.9 kB / 1.371 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/1.25, allocations: 0 / 1.371 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.982e-05/1.25, allocations: 15.98 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/1.25, allocations: 4 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/1.25, allocations: 7 kB / 1.371 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/1.25, allocations: 0.6875 kB / 1.371 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/1.25, allocations: 0 / 1.371 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/1.25, allocations: 215.7 kB / 1.371 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/1.25, allocations: 85.05 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/1.25, allocations: 4 kB / 1.371 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/1.25, allocations: 35.72 kB / 1.371 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/1.251, allocations: 35.2 kB / 1.371 GB, free: 14.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/1.251, allocations: 7.938 kB / 1.371 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.14e-05/1.251, allocations: 100.7 kB / 1.371 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.251, allocations: 0 / 1.371 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002031/1.251, allocations: 39.48 kB / 1.371 GB, free: 14.05 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.000135/1.251, allocations: 103.2 kB / 1.371 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002947/1.251, allocations: 231.7 kB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.251, allocations: 0 / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/1.252, allocations: 122.5 kB / 1.372 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/1.252, allocations: 8.375 kB / 1.372 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/1.252, allocations: 147.5 kB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/1.252, allocations: 0.6926 MB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.79e-05/1.252, allocations: 12.17 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/1.253, allocations: 7.438 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of SimCode: time 7.02e-07/1.253, allocations: 0 / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of Templates: time 0.003784/1.256, allocations: 1.544 MB / 1.374 GB, free: 11.2 MB / 0.8386 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