Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001304/0.001304, 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.001419/0.001419, allocations: 218.2 kB / 23.04 MB, free: 5.07 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.181/3.181, allocations: 0.5003 GB / 0.8061 GB, free: 26.74 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_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.002066/0.002066, allocations: 69.44 kB / 1.171 GB, free: 19.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3296, allocations: 179 MB / 1.345 GB, free: 448 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002866/0.3324, allocations: 1.564 MB / 1.347 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.3335, allocations: 0.5181 MB / 1.347 GB, free: 14.34 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.3336, allocations: 8 kB / 1.347 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.751e-05/0.3337, allocations: 3.938 kB / 1.347 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.831e-05/0.3337, allocations: 19.8 kB / 1.347 GB, free: 14.31 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.334, allocations: 47.88 kB / 1.347 GB, free: 14.26 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.3342, allocations: 79.83 kB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3343, allocations: 8.281 kB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.3345, allocations: 55.77 kB / 1.348 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.806e-05/0.3345, allocations: 35.84 kB / 1.348 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.3346, allocations: 8 kB / 1.348 GB, free: 14.08 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.769e-05/0.3346, allocations: 12 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.3347, allocations: 11.98 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.181e-05/0.3347, allocations: 35.8 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001735/0.3349, allocations: 87.52 kB / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3349, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3349, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3349, allocations: 0 / 1.348 GB, free: 13.93 MB / 1.045 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.0006945/0.3356, allocations: 373.4 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3356, allocations: 19.95 kB / 1.348 GB, free: 13.51 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.381e-05/0.3357, allocations: 192 / 1.348 GB, free: 13.51 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.3357, allocations: 38.75 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.3358, allocations: 20.88 kB / 1.348 GB, free: 13.44 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.3361, allocations: 134.4 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.3361, allocations: 4.375 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3361, allocations: 8.375 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.3364, allocations: 101.5 kB / 1.348 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.3364, allocations: 0 / 1.348 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3364, allocations: 0 / 1.348 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3364, allocations: 4 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002738/0.3367, allocations: 71.92 kB / 1.348 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.3372, allocations: 311.7 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.3375, allocations: 78.52 kB / 1.349 GB, free: 12.66 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.3377, allocations: 52.94 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.3377, allocations: 0 / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.338, allocations: 107.4 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.338, allocations: 0 / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0006765/0.3387, allocations: 207.2 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.3388, allocations: 85.09 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3389, allocations: 139.3 kB / 1.349 GB, free: 12.03 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.3389, allocations: 33.7 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.099e-05/0.339, allocations: 99.94 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.388e-05/0.339, allocations: 15.89 kB / 1.35 GB, free: 11.87 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.3391, allocations: 29.72 kB / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3393, allocations: 318.8 kB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.3394, allocations: 51.95 kB / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.3396, allocations: 51.91 kB / 1.35 GB, free: 11.41 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.3399, allocations: 170 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3399, allocations: 0 / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004468/0.3404, allocations: 212.9 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.308e-05/0.3404, allocations: 63.41 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.3404, allocations: 4 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3405, allocations: 0 / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.3406, allocations: 19.97 kB / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3406, allocations: 0 / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.3407, allocations: 23.81 kB / 1.35 GB, free: 10.88 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.3407, allocations: 4 kB / 1.35 GB, free: 10.88 MB / 1.045 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.0001374/0.3409, allocations: 151.5 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.3409, allocations: 11.95 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.3409, allocations: 16.7 kB / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3409, allocations: 3.938 kB / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3409, allocations: 0 / 1.351 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3409, allocations: 3.938 kB / 1.351 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006138/0.3416, allocations: 399.3 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3416, allocations: 0 / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.863e-05/0.3416, allocations: 19.97 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3416, allocations: 0 / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.3417, allocations: 7.938 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.3417, allocations: 0 / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3417, allocations: 0 / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004612/0.3421, allocations: 273 kB / 1.351 GB, free: 9.91 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.477e-05/0.3421, allocations: 7.953 kB / 1.351 GB, free: 9.902 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.3422, allocations: 7.938 kB / 1.351 GB, free: 9.895 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.3423, allocations: 19.97 kB / 1.351 GB, free: 9.875 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3424, allocations: 19.97 kB / 1.351 GB, free: 9.855 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.3424, allocations: 4 kB / 1.351 GB, free: 9.852 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.525e-05/0.3425, allocations: 101 kB / 1.351 GB, free: 9.754 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3425, allocations: 4.031 kB / 1.351 GB, free: 9.75 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002369/0.3428, allocations: 19.94 kB / 1.351 GB, free: 9.73 MB / 1.045 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.0008094/0.3436, allocations: 0.8121 MB / 1.352 GB, free: 8.887 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000454/0.344, allocations: 218.7 kB / 1.353 GB, free: 8.648 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.344, allocations: 0 / 1.353 GB, free: 8.648 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.3442, allocations: 111.3 kB / 1.353 GB, free: 8.527 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3445, allocations: 7.984 kB / 1.353 GB, free: 8.52 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.3469, allocations: 1.742 MB / 1.354 GB, free: 6.68 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.3473, allocations: 0.6885 MB / 1.355 GB, free: 5.965 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.541e-05/0.3473, allocations: 11.98 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.316e-05/0.3474, allocations: 23.42 kB / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Performance of SimCode: time 5.51e-07/0.3474, allocations: 4 kB / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.3709, allocations: 2.749 MB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.17, allocations: 17.45 kB / 1.358 GB, free: 3.32 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.855854883033317] Failed to read output from testmodel.py, exit status != 0: 12.33092310000211 12.359657628 12.019655672 Calling exit ...