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.001714/0.001714, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002342/0.002342, allocations: 216.4 kB / 23.04 MB, free: 5.074 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.207/3.207, allocations: 0.49 GB / 0.7959 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="cs",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.002898/0.002898, allocations: 65.09 kB / 1.155 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3497, allocations: 176.1 MB / 1.327 GB, free: 1.988 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002692/0.3524, allocations: 1.556 MB / 1.328 GB, free: 436 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.000895/0.3533, allocations: 0.5221 MB / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.492e-05/0.3534, allocations: 7.938 kB / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.548e-05/0.3535, allocations: 7.922 kB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.84e-05/0.3535, allocations: 15.86 kB / 1.329 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.3537, allocations: 39.89 kB / 1.329 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.3539, allocations: 87.77 kB / 1.329 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.356e-05/0.354, allocations: 12.27 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.3541, allocations: 51.78 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.118e-05/0.3542, allocations: 31.84 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.3542, allocations: 12 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.3542, allocations: 12 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.3543, allocations: 19.91 kB / 1.329 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.564e-05/0.3543, allocations: 31.86 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.3545, allocations: 87.52 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3545, allocations: 0 / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3545, allocations: 0 / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.3545, allocations: 0 / 1.329 GB, free: 15.49 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.0006414/0.3551, allocations: 381.4 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.3552, allocations: 8.031 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.525e-05/0.3552, allocations: 192 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.3552, allocations: 38.75 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.3554, allocations: 16.88 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.3556, allocations: 140.3 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.3556, allocations: 384 / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.3556, allocations: 8.375 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.3559, allocations: 101.6 kB / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3559, allocations: 0 / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3559, allocations: 0 / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3559, allocations: 0 / 1.33 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.3562, allocations: 79.86 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.3568, allocations: 311.8 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.3571, allocations: 78.55 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.3572, allocations: 52.94 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.3572, allocations: 4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.3575, allocations: 107.3 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 3.577e-06/0.3575, allocations: 3.984 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0006296/0.3581, allocations: 211.2 kB / 1.331 GB, free: 13.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.3582, allocations: 89.03 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3583, allocations: 138.9 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.3583, allocations: 33.7 kB / 1.331 GB, free: 13.53 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.3584, allocations: 84.14 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.3584, allocations: 27.83 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.3585, allocations: 25.72 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3586, allocations: 318.8 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3588, allocations: 51.95 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.359, allocations: 55.89 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.3593, allocations: 165.8 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3593, allocations: 0 / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004572/0.3598, allocations: 209 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.3598, allocations: 63.41 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3598, allocations: 0 / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.3598, allocations: 0 / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.36, allocations: 23.91 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.36, allocations: 4 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.3601, allocations: 23.81 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.3601, allocations: 4 kB / 1.332 GB, free: 12.43 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.0001206/0.3602, allocations: 153.7 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.3603, allocations: 11.95 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.3603, allocations: 8.719 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3603, allocations: 4 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3603, allocations: 0 / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3603, allocations: 3.938 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.3609, allocations: 399.2 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3609, allocations: 3.984 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.812e-05/0.361, allocations: 19.98 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.361, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.361, allocations: 3.938 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.361, allocations: 0 / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.361, allocations: 4 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.3615, allocations: 265.4 kB / 1.333 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.762e-05/0.3615, allocations: 7.953 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.3615, allocations: 7.938 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3616, allocations: 19.91 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.3617, allocations: 35.84 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.3617, allocations: 4 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.292e-05/0.3618, allocations: 104.9 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3618, allocations: 0 / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002417/0.3621, allocations: 16 kB / 1.333 GB, free: 11.28 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.0007648/0.3628, allocations: 0.8039 MB / 1.334 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000486/0.3633, allocations: 234.6 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3633, allocations: 0 / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.3635, allocations: 103.4 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.3638, allocations: 13.52 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.3663, allocations: 1.721 MB / 1.336 GB, free: 8.25 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.3666, allocations: 0.6963 MB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.758e-05/0.3667, allocations: 11.98 kB / 1.336 GB, free: 7.516 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.015e-05/0.3667, allocations: 23.44 kB / 1.336 GB, free: 7.492 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.3667, allocations: 0 / 1.336 GB, free: 7.492 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.3893, allocations: 2.763 MB / 1.339 GB, free: 4.891 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.78, allocations: 7.188 kB / 1.339 GB, free: 4.887 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=400 --tolerance=1e-06 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] [Calling os._exit(0), Time elapsed: 18.35666173696518] Failed to read output from testmodel.py, exit status != 0: 11.94240944297053 11.959234099 11.601344002 Calling exit ...