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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, 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.001359/0.001359, allocations: 185 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.804/2.804, allocations: 462.6 MB / 0.7371 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003582, allocations: 13.8 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3599, allocations: 159.6 MB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001949/0.3619, allocations: 1.206 MB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.3629, allocations: 462.9 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.895e-05/0.363, allocations: 0 / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.079e-05/0.3631, allocations: 11.92 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.3631, allocations: 11.88 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.3634, allocations: 23.97 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.3635, allocations: 95.73 kB / 1.061 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.3636, allocations: 20.11 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.3638, allocations: 39.91 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.915e-05/0.3639, allocations: 39.83 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.3639, allocations: 4 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.364, allocations: 4 kB / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.651e-05/0.364, allocations: 11.91 kB / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.856e-05/0.3641, allocations: 57.56 kB / 1.061 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.3642, allocations: 55.91 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3642, allocations: 0 / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3642, allocations: 0 / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.3642, allocations: 0 / 1.061 GB, free: 2.957 MB / 0.8106 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.0007098/0.365, allocations: 441 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.365, allocations: 12.03 kB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.3651, allocations: 12.84 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.3653, allocations: 199 kB / 1.062 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.3653, allocations: 8.375 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.3653, allocations: 8.375 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.3657, allocations: 125.7 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3657, allocations: 0 / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3657, allocations: 8 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3657, allocations: 4 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003203/0.3661, allocations: 99.92 kB / 1.062 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006193/0.3667, allocations: 332.7 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.367, allocations: 122.5 kB / 1.063 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.3672, allocations: 76.94 kB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.3673, allocations: 7.938 kB / 1.063 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003446/0.3676, allocations: 135.3 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.934e-06/0.3676, allocations: 4 kB / 1.063 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0007484/0.3684, allocations: 299.2 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/0.3685, allocations: 85.17 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.3686, allocations: 136.2 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.3686, allocations: 29.7 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.291e-05/0.3687, allocations: 100 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.3687, allocations: 19.75 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.3688, allocations: 13.72 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3689, allocations: 322.8 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.3691, allocations: 75.95 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.3693, allocations: 79.88 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/0.3697, allocations: 197.9 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3697, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005388/0.3703, allocations: 272.8 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.851e-05/0.3704, allocations: 71.39 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3704, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3704, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3705, allocations: 15.98 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.3705, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3707, allocations: 35.97 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3707, allocations: 4 kB / 1.064 GB, free: 15.39 MB / 0.8262 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.0001393/0.3709, allocations: 159.6 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.3709, allocations: 11.84 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.111e-05/0.3709, allocations: 12.38 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.371, allocations: 0 / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.371, allocations: 0 / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.371, allocations: 3.938 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3712, allocations: 197.5 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3712, allocations: 0 / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.3713, allocations: 15.98 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.3713, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.3713, allocations: 4 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3713, allocations: 7.922 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3713, allocations: 0 / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.3718, allocations: 262.6 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.3719, allocations: 88.95 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.3719, allocations: 4.312 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.3721, allocations: 31.97 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3722, allocations: 31.97 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.3722, allocations: 11.98 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.519e-05/0.3723, allocations: 95.27 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3723, allocations: 4 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002149/0.3725, allocations: 27.94 kB / 1.065 GB, free: 14.33 MB / 0.8262 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.0001084/0.3726, allocations: 103.2 kB / 1.066 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005239/0.3732, allocations: 282.6 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3732, allocations: 4 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.3734, allocations: 147.3 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.3737, allocations: 15.94 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005466/0.3742, allocations: 270.9 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.3745, allocations: 0.6887 MB / 1.067 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.3746, allocations: 11.44 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of SimCode: time 1.833e-06/0.3746, allocations: 0 / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of Templates: time 0.003065/0.3776, allocations: 1.427 MB / 1.068 GB, free: 11.29 MB / 0.8262 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches