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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.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.2/2.2, allocations: 390.3 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6112/0.6125, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002627/0.6151, allocations: 1.517 MB / 0.9512 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006431/0.6158, allocations: 444.9 kB / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.117e-05/0.6159, allocations: 5.281 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.697e-05/0.616, allocations: 7.922 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.263e-05/0.616, allocations: 9.438 kB / 0.9517 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.6162, allocations: 41.36 kB / 0.9517 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.6164, allocations: 87.11 kB / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.6165, allocations: 16.98 kB / 0.9518 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.6166, allocations: 46.77 kB / 0.9518 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.219e-05/0.6167, allocations: 35.31 kB / 0.9519 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.6168, allocations: 5.344 kB / 0.9519 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.935e-05/0.6168, allocations: 7.031 kB / 0.9519 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.041e-05/0.6168, allocations: 19.2 kB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.649e-05/0.6169, allocations: 27.8 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.617, allocations: 75.08 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.617, allocations: 0 / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.617, allocations: 1.062 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.6171, allocations: 0 / 0.952 GB, free: 7.41 MB / 0.7169 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.0006309/0.6177, allocations: 450.2 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.6177, allocations: 9.375 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.6178, allocations: 45.02 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.6178, allocations: 13.06 kB / 0.9525 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.618, allocations: 184 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.618, allocations: 2.594 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.872e-05/0.618, allocations: 5.031 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.6183, allocations: 99.69 kB / 0.9528 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.331e-06/0.6183, allocations: 0 / 0.9528 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.6184, allocations: 5.062 kB / 0.9528 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.6184, allocations: 5.25 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.6187, allocations: 76.58 kB / 0.9529 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.6192, allocations: 334 kB / 0.9532 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.6195, allocations: 83.67 kB / 0.9533 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.6197, allocations: 55.84 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.6197, allocations: 1.5 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.62, allocations: 104.7 kB / 0.9534 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.62, allocations: 0 / 0.9534 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006442/0.6207, allocations: 215.9 kB / 0.9536 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.6207, allocations: 83.64 kB / 0.9537 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.394e-05/0.6208, allocations: 133 kB / 0.9538 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.6208, allocations: 26.8 kB / 0.9538 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.648e-05/0.6209, allocations: 101 kB / 0.9539 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.6209, allocations: 19.31 kB / 0.954 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.621, allocations: 26.48 kB / 0.954 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.621, allocations: 326.1 kB / 0.9543 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.6212, allocations: 50.94 kB / 0.9543 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.6214, allocations: 48.2 kB / 0.9544 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.6217, allocations: 167.1 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.6217, allocations: 0 / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004394/0.6222, allocations: 211.3 kB / 0.9548 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.6222, allocations: 61.73 kB / 0.9548 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.6223, allocations: 5.125 kB / 0.9548 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.6223, allocations: 3.938 kB / 0.9548 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.6224, allocations: 14.64 kB / 0.9548 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.6224, allocations: 1.406 kB / 0.9548 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.6226, allocations: 25.33 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.6226, allocations: 6.375 kB / 0.9549 GB, free: 4.785 MB / 0.7169 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 7.929e-05/0.6227, allocations: 150.8 kB / 0.955 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.6227, allocations: 9.469 kB / 0.955 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.744e-05/0.6227, allocations: 14.02 kB / 0.955 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.6227, allocations: 1.25 kB / 0.955 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.6228, allocations: 3.984 kB / 0.955 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.6228, allocations: 5.281 kB / 0.955 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005123/0.6233, allocations: 433 kB / 0.9555 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6233, allocations: 4 kB / 0.9555 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.6234, allocations: 18.45 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.6234, allocations: 0 / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.6234, allocations: 1.25 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.6234, allocations: 5.188 kB / 0.9555 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6234, allocations: 0 / 0.9555 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.6239, allocations: 265.6 kB / 0.9557 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.832e-05/0.6239, allocations: 91.55 kB / 0.9558 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.624, allocations: 7.875 kB / 0.9558 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.6242, allocations: 19.75 kB / 0.9558 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.6242, allocations: 17.39 kB / 0.9559 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.6243, allocations: 7.984 kB / 0.9559 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.611e-05/0.6243, allocations: 99.75 kB / 0.956 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6243, allocations: 0 / 0.956 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002508/0.6246, allocations: 25.62 kB / 0.956 GB, free: 3.746 MB / 0.7169 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.0006389/0.6252, allocations: 0.7966 MB / 0.9568 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004652/0.6257, allocations: 229.6 kB / 0.957 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6257, allocations: 0 / 0.957 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002261/0.6259, allocations: 114.8 kB / 0.9571 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.6263, allocations: 10 kB / 0.9571 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.6283, allocations: 1.704 MB / 0.9588 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.6284, allocations: 0.7023 MB / 0.9595 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.236e-05/0.6284, allocations: 9.359 kB / 0.9595 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.6285, allocations: 28.75 kB / 0.9595 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6285, allocations: 0 / 0.9595 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/0.6482, allocations: 2.493 MB / 0.9619 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.778/7.426, allocations: 14.88 kB / 0.9619 GB, free: 15.23 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/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