Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.001246/0.001246, allocations: 97.92 kB / 19.73 MB, free: 1.992 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.001452/0.001452, allocations: 214 kB / 23.02 MB, free: 4.422 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.151/3.151, allocations: 0.49 GB / 0.7959 GB, free: 35.34 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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.002007/0.002007, allocations: 62.8 kB / 1.155 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3977, allocations: 176.1 MB / 1.327 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002377/0.4001, allocations: 0.6721 MB / 1.327 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001938/0.402, allocations: 1.222 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.4021, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/0.4021, allocations: 4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.4022, allocations: 15.88 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007894/0.403, allocations: 218.1 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003272/0.4034, allocations: 187.7 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.4035, allocations: 8 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.4036, allocations: 71.88 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.4038, allocations: 63.8 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.992e-05/0.4038, allocations: 20 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.749e-05/0.4039, allocations: 31.97 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.685e-05/0.404, allocations: 4 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.4041, allocations: 55.89 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.4044, allocations: 155.8 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4044, allocations: 0 / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.364e-06/0.4044, allocations: 4 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.4044, allocations: 0 / 1.329 GB, free: 14.84 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007649/0.4051, allocations: 361.5 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.4052, allocations: 12.03 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.067e-05/0.4052, allocations: 8.188 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.075e-05/0.4053, allocations: 42.67 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.959e-05/0.4053, allocations: 12.89 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.4055, allocations: 110.5 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.4055, allocations: 8.375 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.693e-05/0.4056, allocations: 11.94 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.4057, allocations: 53.67 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4058, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.4058, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4058, allocations: 0 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.767e-05/0.4058, allocations: 19.92 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007045/0.4065, allocations: 315.7 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.4067, allocations: 26.58 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.333e-05/0.4067, allocations: 16.94 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.4067, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.407, allocations: 91.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.914e-06/0.407, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003999/0.4074, allocations: 133.5 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.4075, allocations: 51.41 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.4076, allocations: 125.8 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.4077, allocations: 33.7 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.4078, allocations: 92.36 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.4078, allocations: 19.89 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.4079, allocations: 49.69 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001869/0.4081, allocations: 326.8 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.4083, allocations: 123.4 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.4085, allocations: 165.4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.4088, allocations: 189.3 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.4088, allocations: 0 / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005732/0.4094, allocations: 348.2 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.63e-05/0.4095, allocations: 67.39 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.4095, allocations: 384 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.4095, allocations: 4 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.627e-05/0.4096, allocations: 11.94 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.4096, allocations: 0 / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.4099, allocations: 71.86 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.41, allocations: 11.98 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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.0001285/0.4101, allocations: 130.9 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.4101, allocations: 7.938 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/0.4101, allocations: 16.31 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4101, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.4101, allocations: 4 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4101, allocations: 3.938 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.4105, allocations: 317.6 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4105, allocations: 0 / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.959e-06/0.4105, allocations: 4 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.4105, allocations: 3.984 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.4105, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.4105, allocations: 7.938 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4105, allocations: 0 / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.4107, allocations: 195.4 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.4107, allocations: 7.953 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.4108, allocations: 7.984 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.752e-05/0.4108, allocations: 7.938 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.612e-05/0.4109, allocations: 7.984 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.4109, allocations: 4 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.095e-05/0.4109, allocations: 91.27 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4109, allocations: 0 / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002914/0.4112, allocations: 36 kB / 1.333 GB, free: 10.75 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: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006487/0.4119, allocations: 0.7476 MB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000464/0.4123, allocations: 294.1 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.4123, allocations: 0 / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.116e-05/0.4124, allocations: 31.92 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.4128, allocations: 21.98 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.4157, allocations: 2.118 MB / 1.336 GB, free: 7.309 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.344e-05/0.4157, allocations: 71.66 kB / 1.336 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.07e-05/0.4158, allocations: 12.66 kB / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.4158, allocations: 19.44 kB / 1.336 GB, free: 7.188 MB / 1.029 GB Notification: Performance of SimCode: time 6.11e-07/0.4158, allocations: 0 / 1.336 GB, free: 7.188 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.4409, allocations: 3.379 MB / 1.339 GB, free: 4 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.81, allocations: 6.125 kB / 1.339 GB, free: 3.996 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.52328981598839] Failed to read output from testmodel.py, exit status != 0: 11.97569180210121 12.004123658 11.594452871 Calling exit ...