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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009012/0.0009015, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008654/0.0008654, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.532/2.532, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004032, allocations: 8 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8196/0.82, allocations: 142.4 MB / 0.9544 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002012/0.8221, allocations: 1.211 MB / 0.9556 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008286/0.8229, allocations: 431.5 kB / 0.956 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.065e-05/0.823, allocations: 3.938 kB / 0.956 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.8231, allocations: 13.08 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.909e-05/0.8232, allocations: 13.14 kB / 0.9561 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000277/0.8235, allocations: 24.69 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.8237, allocations: 67.28 kB / 0.9562 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.8238, allocations: 19.03 kB / 0.9562 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.824, allocations: 34.78 kB / 0.9562 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.8242, allocations: 38.14 kB / 0.9562 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.8242, allocations: 2.875 kB / 0.9562 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.134e-05/0.8242, allocations: 2.938 kB / 0.9562 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.8243, allocations: 15.08 kB / 0.9563 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.079e-05/0.8243, allocations: 29.61 kB / 0.9563 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.8245, allocations: 51.25 kB / 0.9563 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.8245, allocations: 0 / 0.9563 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.354e-06/0.8245, allocations: 1.5 kB / 0.9563 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.171e-06/0.8245, allocations: 0 / 0.9563 GB, free: 6.223 MB / 0.7169 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.0007521/0.8253, allocations: 438.4 kB / 0.9568 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.8253, allocations: 9.531 kB / 0.9568 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.8254, allocations: 16.23 kB / 0.9568 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.8256, allocations: 187.7 kB / 0.957 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.8256, allocations: 6.438 kB / 0.957 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.8256, allocations: 3.812 kB / 0.957 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.8259, allocations: 105.4 kB / 0.9571 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.8259, allocations: 0.9375 kB / 0.9571 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.8259, allocations: 4.906 kB / 0.9571 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.826, allocations: 0.9688 kB / 0.9571 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002756/0.8262, allocations: 99.2 kB / 0.9572 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.8268, allocations: 343.6 kB / 0.9575 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.8271, allocations: 97.42 kB / 0.9576 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.8273, allocations: 58.11 kB / 0.9576 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.8273, allocations: 1.531 kB / 0.9577 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.8276, allocations: 122.5 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.8276, allocations: 0 / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000608/0.8282, allocations: 236.7 kB / 0.958 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.8282, allocations: 83.47 kB / 0.9581 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/0.8284, allocations: 130.8 kB / 0.9582 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.8284, allocations: 27.11 kB / 0.9582 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.8284, allocations: 100 kB / 0.9583 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.8285, allocations: 25.88 kB / 0.9583 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.8285, allocations: 5.281 kB / 0.9583 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.205e-05/0.8285, allocations: 317.6 kB / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.8287, allocations: 54.3 kB / 0.9587 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.8288, allocations: 61.86 kB / 0.9588 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.829, allocations: 99.12 kB / 0.9589 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.829, allocations: 0 / 0.9589 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004029/0.8294, allocations: 227.3 kB / 0.9591 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.8295, allocations: 67.14 kB / 0.9591 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.8295, allocations: 0 / 0.9591 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.8295, allocations: 2.125 kB / 0.9591 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.8296, allocations: 25.03 kB / 0.9592 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.8297, allocations: 4 kB / 0.9592 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.8298, allocations: 18.8 kB / 0.9592 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.8298, allocations: 7.031 kB / 0.9592 GB, free: 3.711 MB / 0.7169 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,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.015e-05/0.8299, allocations: 147.3 kB / 0.9593 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.8299, allocations: 7.781 kB / 0.9593 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.83, allocations: 14.14 kB / 0.9594 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.83, allocations: 1.5 kB / 0.9594 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.83, allocations: 4 kB / 0.9594 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.83, allocations: 1.594 kB / 0.9594 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.8305, allocations: 447 kB / 0.9598 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.8305, allocations: 0 / 0.9598 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.512e-05/0.8306, allocations: 20.31 kB / 0.9598 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.8306, allocations: 1.656 kB / 0.9598 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.8306, allocations: 9.359 kB / 0.9598 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8306, allocations: 0 / 0.9598 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8307, allocations: 3.938 kB / 0.9598 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/0.8311, allocations: 278.4 kB / 0.9601 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.8311, allocations: 91.64 kB / 0.9602 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.8311, allocations: 5.328 kB / 0.9602 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.8313, allocations: 25.73 kB / 0.9602 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.8314, allocations: 21.59 kB / 0.9602 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.8314, allocations: 5.359 kB / 0.9602 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.117e-05/0.8315, allocations: 102.8 kB / 0.9603 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.172e-06/0.8315, allocations: 0 / 0.9603 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000249/0.8317, allocations: 20.44 kB / 0.9603 GB, free: 2.676 MB / 0.7169 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 (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.0001246/0.8319, allocations: 110.3 kB / 0.9605 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004086/0.8323, allocations: 229.2 kB / 0.9607 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.8323, allocations: 0 / 0.9607 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.8325, allocations: 124.5 kB / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.8328, allocations: 13.31 kB / 0.9608 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.8333, allocations: 219.9 kB / 0.961 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.8334, allocations: 0.6952 MB / 0.9617 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.056e-05/0.8335, allocations: 18.03 kB / 0.9617 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.8335, allocations: 10.66 kB / 0.9617 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.8335, allocations: 4 kB / 0.9617 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of Templates: time 0.003765/0.8373, allocations: 1.105 MB / 0.9628 GB, free: 0.8438 MB / 0.7169 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/jenkins/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