Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|act1.y|act2.y|act3.y|reqCou.nInc",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 103 kB / 16.35 MB, free: 5.824 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.001328/0.001329, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.427/2.427, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.14 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3431, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002649/0.3458, allocations: 1.521 MB / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.3465, allocations: 458.7 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.515e-05/0.3466, allocations: 7.938 kB / 1.029 GB, free: 40 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.182e-05/0.3467, allocations: 3.938 kB / 1.029 GB, free: 36 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.399e-05/0.3467, allocations: 15.84 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.3469, allocations: 32.05 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.3471, allocations: 95.7 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3472, allocations: 20.17 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3473, allocations: 31.91 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.819e-05/0.3474, allocations: 35.84 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.3474, allocations: 4 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.3474, allocations: 12 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.641e-05/0.3475, allocations: 23.91 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.873e-05/0.3476, allocations: 31.8 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.3477, allocations: 75.7 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3477, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3477, allocations: 4 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.3477, allocations: 0 / 1.029 GB, free: 15.66 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006413/0.3484, allocations: 438.5 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3484, allocations: 12.03 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.3485, allocations: 16.83 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.3486, allocations: 184.2 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.3486, allocations: 4.375 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.3487, allocations: 4.375 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.3489, allocations: 101.7 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.349, allocations: 0 / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.349, allocations: 0 / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.349, allocations: 4 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.3493, allocations: 71.94 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.3498, allocations: 336.6 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.3501, allocations: 86.52 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.3503, allocations: 56.86 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.3503, allocations: 4 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.3506, allocations: 107.4 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3506, allocations: 0 / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005752/0.3512, allocations: 211.2 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.3512, allocations: 85.05 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.3513, allocations: 133.2 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3514, allocations: 29.7 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.3514, allocations: 99.97 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.3514, allocations: 15.81 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/0.3515, allocations: 33.7 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.436e-05/0.3516, allocations: 322.8 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.3518, allocations: 47.95 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.3519, allocations: 51.89 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002928/0.3522, allocations: 165.9 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3523, allocations: 0 / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004073/0.3527, allocations: 212.9 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.3527, allocations: 55.41 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3527, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3527, allocations: 7.984 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3529, allocations: 15.98 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3529, allocations: 0 / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.353, allocations: 27.83 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.353, allocations: 11.94 kB / 1.032 GB, free: 12.47 MB / 0.8106 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 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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.0001082/0.3532, allocations: 151.5 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.3532, allocations: 7.906 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.3532, allocations: 9 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3532, allocations: 3.938 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3532, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3533, allocations: 7.938 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005276/0.3538, allocations: 432.1 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3538, allocations: 0 / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.488e-05/0.3539, allocations: 11.98 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3539, allocations: 7.984 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3539, allocations: 0 / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.3539, allocations: 3.938 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3539, allocations: 3.938 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.3544, allocations: 277 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.3544, allocations: 85.02 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.3544, allocations: 0 / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.3546, allocations: 15.92 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.895e-05/0.3547, allocations: 31.97 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.3547, allocations: 0 / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.076e-05/0.3548, allocations: 103.3 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3548, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00024/0.355, allocations: 19.98 kB / 1.033 GB, free: 11.2 MB / 0.8106 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,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0001137/0.3552, allocations: 99.25 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004232/0.3556, allocations: 226.7 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3556, allocations: 0 / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.3558, allocations: 111.4 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3561, allocations: 8 kB / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000516/0.3566, allocations: 199 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.3569, allocations: 0.6963 MB / 1.034 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.195e-05/0.3569, allocations: 7.984 kB / 1.034 GB, free: 9.766 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.357, allocations: 11.44 kB / 1.034 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of SimCode: time 4.31e-07/0.357, allocations: 0 / 1.034 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of Templates: time 0.003668/0.3607, allocations: 1.317 MB / 1.036 GB, free: 8.457 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches