Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_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.00153/0.00153, allocations: 108.9 kB / 16.41 MB, free: 6.496 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.001698/0.001699, allocations: 187 kB / 17.34 MB, free: 5.766 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.89 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9181/0.9197, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002764/0.9225, allocations: 1.523 MB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007807/0.9233, allocations: 448.1 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.529e-05/0.9234, allocations: 1.125 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.9235, allocations: 9.109 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.383e-05/0.9235, allocations: 11.44 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.9238, allocations: 38.83 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00017/0.9239, allocations: 81.62 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.9241, allocations: 20.48 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.9242, allocations: 45.3 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.441e-05/0.9243, allocations: 35.34 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.9243, allocations: 6.562 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.082e-05/0.9244, allocations: 5.844 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.193e-05/0.9244, allocations: 11.14 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.801e-05/0.9245, allocations: 40.62 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.9247, allocations: 71.47 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.9247, allocations: 4 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.265e-06/0.9247, allocations: 0.7188 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.9247, allocations: 0 / 1.091 GB, free: 3.98 MB / 0.8575 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.000679/0.9254, allocations: 441.8 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.9254, allocations: 10.41 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.9255, allocations: 8.625 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.9257, allocations: 190.6 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.9257, allocations: 6.594 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.9257, allocations: 9.703 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.926, allocations: 97.14 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.926, allocations: 4.547 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.9261, allocations: 5.688 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.9261, allocations: 0.7188 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.9264, allocations: 71.08 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005752/0.927, allocations: 347.4 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.9273, allocations: 81.2 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.9275, allocations: 50.14 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.9275, allocations: 4.812 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.9279, allocations: 105.2 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.9279, allocations: 0.7812 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006838/0.9286, allocations: 214.8 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.9286, allocations: 80.83 kB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.9287, allocations: 130.5 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.9287, allocations: 28.03 kB / 1.093 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.9288, allocations: 97.48 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.9288, allocations: 21.16 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/0.9289, allocations: 28.42 kB / 1.093 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.9289, allocations: 324.5 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.9291, allocations: 53.7 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.9293, allocations: 50.55 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.9296, allocations: 161.4 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.9296, allocations: 0 / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000445/0.9301, allocations: 219.1 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/0.9301, allocations: 60.44 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.9301, allocations: 288 / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.9302, allocations: 1.031 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.9303, allocations: 14.84 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.9303, allocations: 5.375 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.9305, allocations: 18.84 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.9305, allocations: 7.578 kB / 1.094 GB, free: 1.68 MB / 0.8575 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 9.047e-05/0.9306, allocations: 152.5 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.9306, allocations: 12.5 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.9307, allocations: 16.16 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.9307, allocations: 0.6875 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.9307, allocations: 0.7812 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.9307, allocations: 0.75 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005523/0.9313, allocations: 433.5 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.9313, allocations: 1.469 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.059e-05/0.9314, allocations: 17.23 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.9314, allocations: 1.594 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.9314, allocations: 1.375 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.9314, allocations: 4.688 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.9314, allocations: 0.75 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004062/0.9318, allocations: 269 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-05/0.9319, allocations: 88.31 kB / 1.095 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.9319, allocations: 6.203 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.9321, allocations: 17.34 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.9322, allocations: 20.17 kB / 1.095 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.9322, allocations: 6.953 kB / 1.095 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.896e-05/0.9323, allocations: 103.7 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9323, allocations: 5.156 kB / 1.095 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002499/0.9325, allocations: 20.06 kB / 1.095 GB, free: 0.7266 MB / 0.8575 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.0001213/0.9327, allocations: 104.4 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004605/0.9331, allocations: 227.3 kB / 1.095 GB, free: 492 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.9331, allocations: 0 / 1.095 GB, free: 492 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.9334, allocations: 112.6 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.9337, allocations: 13.44 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000525/0.9342, allocations: 226.2 kB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.9345, allocations: 0.6914 MB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.9345, allocations: 16.14 kB / 1.096 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/0.9346, allocations: 5.062 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of Templates: time 0.003833/0.9384, allocations: 1.256 MB / 1.097 GB, free: 15.42 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches