Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.008864/0.008864, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001899/0.001899, allocations: 197.1 kB / 16.67 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.669/2.669, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3085, allocations: 151.6 MB / 1.167 GB, free: 6.777 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00313/0.3117, allocations: 1.524 MB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009837/0.3127, allocations: 458.9 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.3128, allocations: 0 / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.3129, allocations: 11.88 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.541e-05/0.3131, allocations: 11.86 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.3134, allocations: 23.97 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.3136, allocations: 99.69 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.3137, allocations: 16.19 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.3139, allocations: 39.84 kB / 1.169 GB, free: 4.586 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.314, allocations: 43.81 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.314, allocations: 4 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.942e-05/0.3141, allocations: 8 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.535e-05/0.3142, allocations: 16 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.37e-05/0.3143, allocations: 35.73 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.3145, allocations: 71.7 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3145, allocations: 0 / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3145, allocations: 0 / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.3145, allocations: 0 / 1.169 GB, free: 4.41 MB / 0.92 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.0007437/0.3152, allocations: 458.4 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3153, allocations: 12.03 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.3153, allocations: 8.891 kB / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.3155, allocations: 192.2 kB / 1.17 GB, free: 3.656 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.3156, allocations: 384 / 1.17 GB, free: 3.656 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.3156, allocations: 4.375 kB / 1.17 GB, free: 3.652 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.3159, allocations: 101.8 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3159, allocations: 0 / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.3159, allocations: 0 / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.316, allocations: 0 / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.3163, allocations: 87.84 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005884/0.3169, allocations: 332.7 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.3172, allocations: 78.61 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3173, allocations: 60.88 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3174, allocations: 0 / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003064/0.3177, allocations: 107.3 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3177, allocations: 0 / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006278/0.3183, allocations: 207.2 kB / 1.17 GB, free: 2.605 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3184, allocations: 81.05 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3185, allocations: 135.5 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3185, allocations: 29.7 kB / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.3186, allocations: 92.12 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.3186, allocations: 27.78 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.3187, allocations: 29.7 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3188, allocations: 326.8 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.319, allocations: 43.95 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.3192, allocations: 51.89 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.3196, allocations: 165.9 kB / 1.171 GB, free: 1.566 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3196, allocations: 4 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004609/0.32, allocations: 208.9 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.3201, allocations: 67.39 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3201, allocations: 0 / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3201, allocations: 0 / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.3203, allocations: 23.86 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.3203, allocations: 0 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.3205, allocations: 23.94 kB / 1.172 GB, free: 1.215 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.3205, allocations: 3.938 kB / 1.172 GB, free: 1.211 MB / 0.92 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.0001255/0.3206, allocations: 151.5 kB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.3207, allocations: 7.953 kB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/0.3207, allocations: 12.72 kB / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3207, allocations: 0 / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3207, allocations: 0 / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3207, allocations: 0 / 1.172 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005942/0.3213, allocations: 436.1 kB / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3213, allocations: 0 / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.458e-05/0.3214, allocations: 15.97 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3215, allocations: 0 / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3215, allocations: 8 kB / 1.172 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3215, allocations: 3.938 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3215, allocations: 0 / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004546/0.322, allocations: 273.4 kB / 1.173 GB, free: 228 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/0.322, allocations: 85 kB / 1.173 GB, free: 124 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.322, allocations: 4 kB / 1.173 GB, free: 120 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.3222, allocations: 23.84 kB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3223, allocations: 19.98 kB / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.3223, allocations: 4 kB / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of sorting global known variables: time 8.349e-05/0.3224, allocations: 108.5 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.824e-06/0.3224, allocations: 0 / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002451/0.3227, allocations: 19.94 kB / 1.173 GB, free: 15.95 MB / 0.9356 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.0001297/0.3228, allocations: 103.2 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004761/0.3233, allocations: 218.7 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.3233, allocations: 4 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.3236, allocations: 111.8 kB / 1.173 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.3238, allocations: 18.31 kB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005649/0.3244, allocations: 202.8 kB / 1.173 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.3249, allocations: 0.6963 MB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.231e-05/0.3249, allocations: 11.98 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.325, allocations: 11.44 kB / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of SimCode: time 2.234e-06/0.325, allocations: 0 / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of Templates: time 0.00432/0.3293, allocations: 1.317 MB / 1.175 GB, free: 13.18 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches