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.001513/0.001513, allocations: 107.5 kB / 16.41 MB, free: 6.492 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.001675/0.001675, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.15 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.248/2.248, allocations: 390.2 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9148/0.9163, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002481/0.9188, allocations: 1.517 MB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007598/0.9196, allocations: 456.8 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.745e-05/0.9196, allocations: 1.062 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.9197, allocations: 5.109 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.5e-05/0.9198, allocations: 12.02 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.92, allocations: 37.48 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.9202, allocations: 86.06 kB / 1.091 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.9203, allocations: 16.39 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.9205, allocations: 40.84 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.9206, allocations: 40.5 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.9206, allocations: 9.75 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.9206, allocations: 6.188 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.903e-05/0.9207, allocations: 15.95 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.819e-05/0.9208, allocations: 35.75 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.9209, allocations: 67.55 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.9209, allocations: 4 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.256e-06/0.9209, allocations: 0.6094 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.921, allocations: 0.9375 kB / 1.091 GB, free: 3.973 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.0007055/0.9217, allocations: 445 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.9217, allocations: 13.66 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.9218, allocations: 9.969 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.9219, allocations: 189.3 kB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.922, allocations: 7.609 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.922, allocations: 4.5 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.9223, allocations: 98.08 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.9223, allocations: 0 / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.9224, allocations: 1.922 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.9224, allocations: 4.969 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003096/0.9227, allocations: 70.98 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005619/0.9233, allocations: 343.1 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.9236, allocations: 84.69 kB / 1.092 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.9238, allocations: 51.05 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.9238, allocations: 0.7812 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.9242, allocations: 105 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.9242, allocations: 4 kB / 1.092 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006611/0.9249, allocations: 207.8 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.9249, allocations: 84.73 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.925, allocations: 134.6 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.9251, allocations: 26.58 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/0.9251, allocations: 101.6 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.9251, allocations: 21.17 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.663e-05/0.9252, allocations: 28.84 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.9253, allocations: 324.4 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.9255, allocations: 48.69 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.9256, allocations: 55.11 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.926, allocations: 169.9 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.926, allocations: 0 / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000422/0.9264, allocations: 214.5 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.9264, allocations: 60.03 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.9265, allocations: 0.7031 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.9265, allocations: 0.8125 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.9266, allocations: 20.09 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.9266, allocations: 4.062 kB / 1.094 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.9268, allocations: 15.34 kB / 1.094 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.9268, allocations: 11.69 kB / 1.094 GB, free: 1.664 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 8.415e-05/0.9269, allocations: 148.9 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.9269, allocations: 12.09 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.9269, allocations: 12.75 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.927, allocations: 0.875 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.927, allocations: 4 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.927, allocations: 1.859 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.9275, allocations: 429.3 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.9275, allocations: 0 / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.158e-05/0.9276, allocations: 14.23 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.9277, allocations: 0.7188 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.9277, allocations: 6.016 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.9277, allocations: 9.359 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.9277, allocations: 0 / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.9281, allocations: 264.6 kB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.9281, allocations: 87.58 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.9282, allocations: 2.859 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.9283, allocations: 25.97 kB / 1.095 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.9284, allocations: 19.2 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.9285, allocations: 4.219 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.495e-05/0.9285, allocations: 101.3 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9285, allocations: 0 / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000248/0.9288, allocations: 19.81 kB / 1.095 GB, free: 0.7227 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.0001081/0.9289, allocations: 101.2 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004494/0.9293, allocations: 230.7 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.9294, allocations: 0 / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.9296, allocations: 109.1 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.0002882/0.9299, allocations: 13.88 kB / 1.095 GB, free: 408 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.9304, allocations: 230.7 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.9307, allocations: 0.6909 MB / 1.096 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.9307, allocations: 16.73 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.9308, allocations: 0 / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of Templates: time 0.003564/0.9343, allocations: 1.263 MB / 1.097 GB, free: 15.41 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