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.001145/0.001145, allocations: 116.2 kB / 16.37 MB, free: 6.004 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.001134/0.001134, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.195/1.195, 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.2-maint.9.1.x/package.mo): time 1.976/1.976, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 68.38 kB / 0.814 GB, free: 32.74 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2195, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002384/0.2219, allocations: 1.522 MB / 0.9526 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006535/0.2226, allocations: 454.9 kB / 0.9531 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.737e-05/0.2227, allocations: 0 / 0.9531 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.864e-05/0.2228, allocations: 15.86 kB / 0.9531 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.208e-05/0.2228, allocations: 11.88 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.223, allocations: 27.95 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.2231, allocations: 87.7 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2233, allocations: 20.17 kB / 0.9532 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2234, allocations: 43.84 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.411e-05/0.2235, allocations: 43.83 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.2235, allocations: 7.938 kB / 0.9533 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.2235, allocations: 8 kB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.096e-05/0.2235, allocations: 15.92 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.491e-05/0.2236, allocations: 35.8 kB / 0.9534 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.2237, allocations: 59.78 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2237, allocations: 0 / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2237, allocations: 4 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.2238, allocations: 0 / 0.9534 GB, free: 5.699 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.0006261/0.2244, allocations: 454.5 kB / 0.9538 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.2244, allocations: 12.03 kB / 0.9539 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.2245, allocations: 8.844 kB / 0.9539 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001673/0.2246, allocations: 192.1 kB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.2247, allocations: 384 / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.2247, allocations: 8.375 kB / 0.9541 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.2249, allocations: 101.8 kB / 0.9542 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.2249, allocations: 0 / 0.9542 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.225, allocations: 0 / 0.9542 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.225, allocations: 0 / 0.9542 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.2252, allocations: 83.84 kB / 0.9542 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.2257, allocations: 332.7 kB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.2259, allocations: 78.52 kB / 0.9546 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.2261, allocations: 56.97 kB / 0.9547 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.2261, allocations: 0 / 0.9547 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.2264, allocations: 111.3 kB / 0.9548 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2264, allocations: 0 / 0.9548 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0005136/0.2269, allocations: 207.2 kB / 0.955 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.2269, allocations: 85.05 kB / 0.9551 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.199e-05/0.227, allocations: 138.1 kB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2271, allocations: 25.7 kB / 0.9552 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.2271, allocations: 104 kB / 0.9553 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.2272, allocations: 15.81 kB / 0.9553 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.788e-05/0.2272, allocations: 25.7 kB / 0.9554 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2273, allocations: 326.8 kB / 0.9557 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2275, allocations: 39.97 kB / 0.9557 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.2276, allocations: 59.89 kB / 0.9558 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.2279, allocations: 165.9 kB / 0.9559 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2279, allocations: 0 / 0.9559 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003683/0.2283, allocations: 204.9 kB / 0.9561 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.2283, allocations: 71.39 kB / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2284, allocations: 320 / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.2284, allocations: 0 / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.2285, allocations: 15.98 kB / 0.9562 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.2285, allocations: 3.938 kB / 0.9562 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.2286, allocations: 23.83 kB / 0.9562 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.2286, allocations: 15.91 kB / 0.9562 GB, free: 2.496 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 9.654e-05/0.2287, allocations: 149.5 kB / 0.9564 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.2288, allocations: 7.906 kB / 0.9564 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.2288, allocations: 12.72 kB / 0.9564 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2288, allocations: 3.984 kB / 0.9564 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2288, allocations: 0 / 0.9564 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.2288, allocations: 0 / 0.9564 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.2293, allocations: 436.1 kB / 0.9568 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2293, allocations: 3.938 kB / 0.9568 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.53e-05/0.2294, allocations: 15.98 kB / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.2294, allocations: 0 / 0.9569 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2294, allocations: 8.281 kB / 0.9569 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2294, allocations: 3.938 kB / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2294, allocations: 0 / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003671/0.2298, allocations: 269 kB / 0.9571 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2298, allocations: 84.95 kB / 0.9572 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.2299, allocations: 4 kB / 0.9572 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.23, allocations: 23.91 kB / 0.9572 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.206e-05/0.2301, allocations: 15.98 kB / 0.9572 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2301, allocations: 7.984 kB / 0.9572 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.806e-05/0.2302, allocations: 101.8 kB / 0.9573 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2302, allocations: 0 / 0.9573 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002183/0.2304, allocations: 16 kB / 0.9574 GB, free: 1.238 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 8.487e-05/0.2305, allocations: 112.9 kB / 0.9575 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003801/0.2309, allocations: 226.7 kB / 0.9577 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2309, allocations: 0 / 0.9577 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.2311, allocations: 107.3 kB / 0.9578 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.2313, allocations: 16 kB / 0.9578 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004034/0.2317, allocations: 195.1 kB / 0.958 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.232, allocations: 0.6937 MB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.572e-05/0.2321, allocations: 11.98 kB / 0.9587 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.412e-05/0.2321, allocations: 23.42 kB / 0.9587 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.2321, allocations: 0 / 0.9587 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of Templates: time 0.003123/0.2352, allocations: 1.306 MB / 0.96 GB, free: 14.47 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 cvode -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