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.001443/0.001443, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.00163/0.001631, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.158/2.158, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 61.06 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2482, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002687/0.2509, allocations: 1.516 MB / 0.9526 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007386/0.2516, allocations: 458.9 kB / 0.9531 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.048e-05/0.2517, allocations: 4 kB / 0.9531 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.167e-05/0.2518, allocations: 3.938 kB / 0.9531 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.189e-05/0.2519, allocations: 15.8 kB / 0.9531 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.2521, allocations: 31.89 kB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2522, allocations: 75.84 kB / 0.9532 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.2523, allocations: 28.16 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2525, allocations: 39.84 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.604e-05/0.2526, allocations: 39.84 kB / 0.9533 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.2526, allocations: 4 kB / 0.9533 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.724e-05/0.2526, allocations: 8 kB / 0.9533 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.791e-05/0.2527, allocations: 19.91 kB / 0.9533 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.2527, allocations: 39.8 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.2529, allocations: 63.77 kB / 0.9534 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2529, allocations: 4 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.278e-06/0.2529, allocations: 4 kB / 0.9534 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.2529, allocations: 3.938 kB / 0.9534 GB, free: 5.719 MB / 0.7325 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.0007192/0.2536, allocations: 442.5 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2537, allocations: 12.03 kB / 0.9539 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.2537, allocations: 8.844 kB / 0.9539 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.2539, allocations: 192.2 kB / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2539, allocations: 4.375 kB / 0.9541 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.254, allocations: 8.375 kB / 0.9541 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.2543, allocations: 97.69 kB / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2543, allocations: 0 / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.2543, allocations: 0 / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2543, allocations: 7.938 kB / 0.9542 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/0.2546, allocations: 71.94 kB / 0.9542 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.2552, allocations: 336.7 kB / 0.9545 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.2554, allocations: 86.45 kB / 0.9546 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.2556, allocations: 48.95 kB / 0.9547 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.2556, allocations: 4 kB / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.2559, allocations: 107.3 kB / 0.9548 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.2559, allocations: 0 / 0.9548 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000598/0.2565, allocations: 219.1 kB / 0.955 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.2566, allocations: 81.11 kB / 0.9551 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.2567, allocations: 132.8 kB / 0.9552 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.2567, allocations: 25.7 kB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.2568, allocations: 99.98 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.2568, allocations: 19.8 kB / 0.9553 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/0.2569, allocations: 21.72 kB / 0.9554 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.257, allocations: 330.8 kB / 0.9557 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.2572, allocations: 47.95 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2573, allocations: 51.97 kB / 0.9558 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.2576, allocations: 165.8 kB / 0.9559 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2577, allocations: 0 / 0.9559 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004173/0.2581, allocations: 220.9 kB / 0.9561 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.846e-05/0.2581, allocations: 55.41 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2581, allocations: 288 / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2582, allocations: 4 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.2583, allocations: 11.98 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.2583, allocations: 7.922 kB / 0.9562 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.2585, allocations: 27.83 kB / 0.9562 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.2585, allocations: 11.94 kB / 0.9563 GB, free: 2.523 MB / 0.7325 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.0001072/0.2586, allocations: 141.5 kB / 0.9564 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.2586, allocations: 15.89 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.2587, allocations: 8.719 kB / 0.9564 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2587, allocations: 0 / 0.9564 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2587, allocations: 0 / 0.9564 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2587, allocations: 4 kB / 0.9564 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005407/0.2592, allocations: 436.1 kB / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2593, allocations: 0 / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.414e-05/0.2593, allocations: 15.92 kB / 0.9568 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.2594, allocations: 7.984 kB / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.2594, allocations: 4 kB / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2594, allocations: 7.922 kB / 0.9569 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2594, allocations: 0 / 0.9569 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.2598, allocations: 269 kB / 0.9571 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.59e-05/0.2598, allocations: 89 kB / 0.9572 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.2599, allocations: 0 / 0.9572 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.26, allocations: 19.92 kB / 0.9572 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.726e-05/0.2601, allocations: 23.97 kB / 0.9572 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.2602, allocations: 0 / 0.9572 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.534e-05/0.2602, allocations: 107.3 kB / 0.9573 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2602, allocations: 0 / 0.9573 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000241/0.2605, allocations: 20 kB / 0.9574 GB, free: 1.258 MB / 0.7325 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.0001142/0.2606, allocations: 103.2 kB / 0.9575 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004369/0.261, allocations: 218.7 kB / 0.9577 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.261, allocations: 0 / 0.9577 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.2612, allocations: 111.4 kB / 0.9578 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.2615, allocations: 13.02 kB / 0.9578 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004933/0.262, allocations: 195.1 kB / 0.958 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.2623, allocations: 0.6961 MB / 0.9587 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.918e-05/0.2624, allocations: 15.92 kB / 0.9587 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.2624, allocations: 15.44 kB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.2624, allocations: 0 / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of Templates: time 0.003839/0.2663, allocations: 1.318 MB / 0.96 GB, free: 14.5 MB / 0.7481 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 -s gbode -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