Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 215.3 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.132/3.132, allocations: 0.49 GB / 0.7951 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 70.48 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3336, allocations: 176.1 MB / 1.326 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002859/0.3365, allocations: 1.57 MB / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00094/0.3374, allocations: 0.526 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.3375, allocations: 3.938 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.392e-05/0.3376, allocations: 7.938 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.206e-05/0.3376, allocations: 11.88 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.3379, allocations: 47.88 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.338, allocations: 79.77 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.471e-05/0.3381, allocations: 12.27 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.3383, allocations: 51.78 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.829e-05/0.3384, allocations: 43.83 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.3384, allocations: 4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.224e-05/0.3384, allocations: 12 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.008e-05/0.3385, allocations: 19.92 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.38e-05/0.3385, allocations: 27.86 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3387, allocations: 79.59 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3387, allocations: 4 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3387, allocations: 7.938 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.3387, allocations: 0 / 1.328 GB, free: 15.46 MB / 1.029 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.0006858/0.3394, allocations: 369.4 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3394, allocations: 12.03 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.886e-05/0.3395, allocations: 38.75 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.3396, allocations: 20.88 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.3398, allocations: 142.3 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.3398, allocations: 4.375 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.3399, allocations: 8.375 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.3401, allocations: 93.75 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3401, allocations: 0 / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.3401, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3402, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002754/0.3404, allocations: 71.88 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.341, allocations: 303.8 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.3413, allocations: 86.55 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.3414, allocations: 48.95 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.3414, allocations: 0 / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.3417, allocations: 115.3 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.3417, allocations: 0 / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006456/0.3424, allocations: 211.2 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.3424, allocations: 81.11 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.3425, allocations: 133.8 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.3426, allocations: 33.7 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.68e-05/0.3427, allocations: 104.1 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3427, allocations: 7.906 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.3427, allocations: 33.7 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3429, allocations: 322.8 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.343, allocations: 43.97 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.3432, allocations: 51.95 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003268/0.3435, allocations: 166 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3435, allocations: 3.938 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004402/0.344, allocations: 209 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.842e-05/0.344, allocations: 69.42 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.344, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.344, allocations: 3.984 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.3442, allocations: 27.92 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3442, allocations: 0 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3443, allocations: 27.8 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.3443, allocations: 4 kB / 1.331 GB, free: 12.4 MB / 1.029 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.0001282/0.3444, allocations: 147.5 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/0.3445, allocations: 7.953 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.3445, allocations: 16.7 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3445, allocations: 4 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3445, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3445, allocations: 3.938 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005933/0.3451, allocations: 403.2 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3451, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.73e-05/0.3452, allocations: 11.98 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3452, allocations: 0 / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.3452, allocations: 8 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3452, allocations: 7.938 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3452, allocations: 0 / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004451/0.3457, allocations: 261.1 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.3457, allocations: 7.938 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.3457, allocations: 8 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.3458, allocations: 19.92 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.346, allocations: 23.95 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.346, allocations: 8.031 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.374e-05/0.346, allocations: 115 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.346, allocations: 0 / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002491/0.3463, allocations: 20 kB / 1.332 GB, free: 11.25 MB / 1.029 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.0008037/0.3471, allocations: 0.8 MB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000463/0.3476, allocations: 218.7 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3476, allocations: 0 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.3478, allocations: 111.9 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.3481, allocations: 13.97 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.3505, allocations: 1.728 MB / 1.335 GB, free: 8.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3508, allocations: 0.6924 MB / 1.336 GB, free: 7.504 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.499e-05/0.3509, allocations: 11.98 kB / 1.336 GB, free: 7.492 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.351, allocations: 27.42 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.351, allocations: 0 / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03444/0.3854, allocations: 2.721 MB / 1.338 GB, free: 4.891 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.25, allocations: 5 kB / 1.338 GB, free: 4.887 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv --start-time 0 --stop-time 600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable act1.y in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act1.y from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act2.y in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act2.y from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable act3.y in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable act3.y from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! Error: Could not read variable reqCou.nInc in file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv. Warning: Get data of variable reqCou.nInc from file Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.048765672003356]