Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001251/0.001251, 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.001479/0.001479, allocations: 217.5 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.456/1.456, 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.268/3.268, allocations: 0.5003 GB / 0.8061 GB, free: 26.8 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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_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.002087/0.002087, allocations: 68.58 kB / 1.171 GB, free: 19.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3472, allocations: 179 MB / 1.345 GB, free: 456 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001982/0.3491, allocations: 0.6823 MB / 1.346 GB, free: 15.76 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.3508, allocations: 1.233 MB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.386e-05/0.3509, allocations: 0 / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.922e-05/0.3509, allocations: 3.938 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.327e-05/0.351, allocations: 23.84 kB / 1.347 GB, free: 14.49 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007143/0.3517, allocations: 224.9 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000279/0.352, allocations: 179.7 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.728e-05/0.3521, allocations: 8 kB / 1.348 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3522, allocations: 75.83 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.3524, allocations: 67.78 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/0.3524, allocations: 16 kB / 1.348 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.3525, allocations: 27.98 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.3525, allocations: 19.91 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.952e-05/0.3526, allocations: 55.84 kB / 1.348 GB, free: 13.83 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.3529, allocations: 159.9 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3529, allocations: 0 / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3529, allocations: 0 / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.3529, allocations: 0 / 1.348 GB, free: 13.68 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005536/0.3535, allocations: 365.5 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3535, allocations: 12.03 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.528e-05/0.3535, allocations: 192 / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.114e-05/0.3536, allocations: 34.75 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.036e-05/0.3536, allocations: 12.89 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.3537, allocations: 114.5 kB / 1.349 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.3538, allocations: 12.31 kB / 1.349 GB, free: 13.06 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.3538, allocations: 15.94 kB / 1.349 GB, free: 13.05 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.3539, allocations: 53.67 kB / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3539, allocations: 0 / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.3539, allocations: 0 / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.3539, allocations: 4 kB / 1.349 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.037e-05/0.354, allocations: 11.98 kB / 1.349 GB, free: 12.97 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.3545, allocations: 331.7 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.857e-05/0.3546, allocations: 42.5 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.982e-05/0.3547, allocations: 12.86 kB / 1.349 GB, free: 12.54 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-06/0.3547, allocations: 0 / 1.349 GB, free: 12.54 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3549, allocations: 95.33 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3549, allocations: 4 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of matching and sorting (n=9): time 0.0003333/0.3552, allocations: 121.9 kB / 1.349 GB, free: 12.3 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.3553, allocations: 59.5 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.3554, allocations: 125.7 kB / 1.349 GB, free: 12.1 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.3554, allocations: 37.7 kB / 1.349 GB, free: 12.06 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.3555, allocations: 88.38 kB / 1.35 GB, free: 11.96 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3555, allocations: 15.86 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.3557, allocations: 57.67 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3558, allocations: 318.8 kB / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.356, allocations: 67.95 kB / 1.35 GB, free: 11.5 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.3562, allocations: 108.6 kB / 1.35 GB, free: 11.38 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3564, allocations: 185.3 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3564, allocations: 0 / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005394/0.357, allocations: 284.8 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.129e-05/0.3571, allocations: 71.39 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3571, allocations: 0 / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.3571, allocations: 4 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.672e-05/0.3572, allocations: 20.03 kB / 1.351 GB, free: 10.76 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3572, allocations: 0 / 1.351 GB, free: 10.76 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.3575, allocations: 59.81 kB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.3576, allocations: 15.98 kB / 1.351 GB, free: 10.68 MB / 1.045 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.0001328/0.3577, allocations: 122.5 kB / 1.351 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.3577, allocations: 11.95 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.3577, allocations: 8.375 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3577, allocations: 3.984 kB / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3577, allocations: 0 / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3578, allocations: 3.938 kB / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.3581, allocations: 325.6 kB / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3581, allocations: 0 / 1.351 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.518e-05/0.3582, allocations: 7.938 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3582, allocations: 0 / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3582, allocations: 3.984 kB / 1.351 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3582, allocations: 7.938 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3582, allocations: 0 / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.3584, allocations: 203.5 kB / 1.351 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.507e-05/0.3584, allocations: 3.953 kB / 1.351 GB, free: 9.922 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.3584, allocations: 4 kB / 1.351 GB, free: 9.918 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.656e-05/0.3585, allocations: 7.922 kB / 1.351 GB, free: 9.91 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.3585, allocations: 12.08 kB / 1.351 GB, free: 9.898 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.3585, allocations: 3.984 kB / 1.351 GB, free: 9.895 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.784e-05/0.3586, allocations: 95.28 kB / 1.351 GB, free: 9.801 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3586, allocations: 0 / 1.351 GB, free: 9.801 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003028/0.3589, allocations: 35.98 kB / 1.351 GB, free: 9.766 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: 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.0006653/0.3596, allocations: 0.7319 MB / 1.352 GB, free: 9.008 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003879/0.36, allocations: 234.6 kB / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.36, allocations: 0 / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 6.056e-05/0.36, allocations: 23.98 kB / 1.352 GB, free: 8.73 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.3604, allocations: 21.3 kB / 1.352 GB, free: 8.711 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.3627, allocations: 1.88 MB / 1.354 GB, free: 6.703 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.363, allocations: 0.6963 MB / 1.355 GB, free: 5.98 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.536e-05/0.3631, allocations: 4.672 kB / 1.355 GB, free: 5.977 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.109e-05/0.3631, allocations: 27.36 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of SimCode: time 6.81e-07/0.3631, allocations: 0 / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.3963, allocations: 3.187 MB / 1.358 GB, free: 2.922 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.57, allocations: 12 kB / 1.358 GB, free: 2.91 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.392909832007717] Failed to read output from testmodel.py, exit status != 0: 11.736498678976204 11.754976207 11.398849968 Calling exit ...