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.00162/0.00162, allocations: 104.2 kB / 16.27 MB, free: 6.414 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.00183/0.00183, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.427/1.427, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.207/2.207, allocations: 390.2 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 61.78 kB / 0.8132 GB, free: 33.1 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2893, allocations: 140.4 MB / 0.9503 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00349/0.2928, allocations: 1.517 MB / 0.9518 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.2938, allocations: 454.9 kB / 0.9522 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.667e-05/0.2939, allocations: 0 / 0.9522 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.2941, allocations: 7.922 kB / 0.9522 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.778e-05/0.2942, allocations: 15.81 kB / 0.9522 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.2944, allocations: 27.97 kB / 0.9522 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.2946, allocations: 99.69 kB / 0.9523 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.2948, allocations: 20.16 kB / 0.9524 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.2949, allocations: 35.86 kB / 0.9524 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.357e-05/0.295, allocations: 43.81 kB / 0.9524 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.295, allocations: 8 kB / 0.9524 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.823e-05/0.2951, allocations: 4 kB / 0.9524 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.664e-05/0.2951, allocations: 15.94 kB / 0.9525 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.451e-05/0.2952, allocations: 27.86 kB / 0.9525 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.2953, allocations: 76.05 kB / 0.9526 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2954, allocations: 0 / 0.9526 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2954, allocations: 0 / 0.9526 GB, free: 6.504 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.2954, allocations: 0 / 0.9526 GB, free: 6.504 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.0007107/0.2961, allocations: 458.5 kB / 0.953 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2961, allocations: 8.031 kB / 0.953 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.772e-05/0.2962, allocations: 8.844 kB / 0.953 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.2965, allocations: 184.2 kB / 0.9532 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.2965, allocations: 4.375 kB / 0.9532 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.2965, allocations: 8.375 kB / 0.9532 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.2968, allocations: 101.6 kB / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.2968, allocations: 0 / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.2968, allocations: 0 / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2969, allocations: 8 kB / 0.9533 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.2971, allocations: 71.92 kB / 0.9534 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.2977, allocations: 336.6 kB / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.298, allocations: 86.52 kB / 0.9538 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.2982, allocations: 52.94 kB / 0.9538 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.2982, allocations: 0 / 0.9538 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.2986, allocations: 107.4 kB / 0.9539 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.2986, allocations: 0 / 0.9539 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006103/0.2992, allocations: 203.2 kB / 0.9541 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.2993, allocations: 85.11 kB / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.2994, allocations: 129.2 kB / 0.9543 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2994, allocations: 33.7 kB / 0.9544 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.2995, allocations: 104 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.2995, allocations: 15.8 kB / 0.9545 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.2996, allocations: 29.7 kB / 0.9545 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2997, allocations: 322.8 kB / 0.9548 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.2999, allocations: 47.95 kB / 0.9549 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.3, allocations: 55.89 kB / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.3004, allocations: 166.1 kB / 0.9551 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3004, allocations: 0 / 0.9551 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004266/0.3008, allocations: 216.8 kB / 0.9553 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.3009, allocations: 67.39 kB / 0.9553 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3009, allocations: 0 / 0.9553 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.3009, allocations: 0 / 0.9553 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.3011, allocations: 19.92 kB / 0.9554 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3011, allocations: 4 kB / 0.9554 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.3012, allocations: 19.83 kB / 0.9554 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.3012, allocations: 7.938 kB / 0.9554 GB, free: 3.309 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.000134/0.3014, allocations: 155.5 kB / 0.9555 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.3014, allocations: 7.906 kB / 0.9555 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/0.3014, allocations: 8.719 kB / 0.9556 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3015, allocations: 8 kB / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3015, allocations: 0 / 0.9556 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3015, allocations: 3.984 kB / 0.9556 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005675/0.3021, allocations: 428.1 kB / 0.956 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3021, allocations: 0 / 0.956 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.954e-05/0.3022, allocations: 19.97 kB / 0.956 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3022, allocations: 0 / 0.956 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3022, allocations: 4 kB / 0.956 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3022, allocations: 3.938 kB / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3022, allocations: 0 / 0.956 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.3026, allocations: 269.4 kB / 0.9563 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.3027, allocations: 85.02 kB / 0.9563 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.3027, allocations: 0 / 0.9563 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3029, allocations: 23.91 kB / 0.9564 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.303, allocations: 23.98 kB / 0.9564 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.026e-06/0.303, allocations: 0 / 0.9564 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.742e-05/0.3031, allocations: 107.2 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3031, allocations: 0 / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002347/0.3033, allocations: 16 kB / 0.9565 GB, free: 2.051 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.0001199/0.3034, allocations: 107.3 kB / 0.9566 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004698/0.3039, allocations: 226.7 kB / 0.9568 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3039, allocations: 0 / 0.9568 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.3041, allocations: 111.6 kB / 0.9569 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.3044, allocations: 17.14 kB / 0.9569 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005132/0.305, allocations: 228.8 kB / 0.9572 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.3052, allocations: 0.6922 MB / 0.9578 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.3053, allocations: 19.42 kB / 0.9579 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.3053, allocations: 0 / 0.9579 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of Templates: time 0.002897/0.3082, allocations: 1.261 MB / 0.9591 GB, free: 15.3 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 -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