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.001415/0.001415, allocations: 104.2 kB / 16.45 MB, free: 6.449 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.001547/0.001547, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.558/1.558, allocations: 230.6 MB / 252.8 MB, free: 9.133 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.367/3.367, allocations: 0.505 GB / 0.8066 GB, free: 23.1 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.002042/0.002042, allocations: 65.62 kB / 1.172 GB, free: 17.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3464, allocations: 180.2 MB / 1.348 GB, free: 9.988 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001872/0.3482, allocations: 0.6791 MB / 1.348 GB, free: 9.312 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001574/0.3498, allocations: 1.229 MB / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.146e-05/0.3499, allocations: 0 / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.742e-05/0.3499, allocations: 7.938 kB / 1.35 GB, free: 8.062 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.397e-05/0.35, allocations: 15.86 kB / 1.35 GB, free: 8.047 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.3506, allocations: 224.6 kB / 1.35 GB, free: 7.832 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.3508, allocations: 175.7 kB / 1.35 GB, free: 7.66 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.308e-05/0.3509, allocations: 15.91 kB / 1.35 GB, free: 7.645 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.351, allocations: 71.89 kB / 1.35 GB, free: 7.574 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3512, allocations: 63.83 kB / 1.35 GB, free: 7.512 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.3512, allocations: 20 kB / 1.35 GB, free: 7.492 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.788e-05/0.3513, allocations: 24 kB / 1.35 GB, free: 7.469 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.3513, allocations: 15.92 kB / 1.35 GB, free: 7.453 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.3514, allocations: 59.88 kB / 1.35 GB, free: 7.395 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.3516, allocations: 159.8 kB / 1.35 GB, free: 7.238 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3516, allocations: 0 / 1.35 GB, free: 7.238 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3516, allocations: 0 / 1.35 GB, free: 7.238 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.3516, allocations: 0 / 1.35 GB, free: 7.238 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.0005765/0.3522, allocations: 442.6 kB / 1.351 GB, free: 6.746 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3523, allocations: 15.98 kB / 1.351 GB, free: 6.73 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.3523, allocations: 34.75 kB / 1.351 GB, free: 6.688 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.671e-05/0.3523, allocations: 12.89 kB / 1.351 GB, free: 6.676 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.3525, allocations: 172.3 kB / 1.351 GB, free: 6.469 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.3525, allocations: 8.375 kB / 1.351 GB, free: 6.461 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.3525, allocations: 16.11 kB / 1.351 GB, free: 6.445 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.3527, allocations: 53.67 kB / 1.351 GB, free: 6.387 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3527, allocations: 0 / 1.351 GB, free: 6.387 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3527, allocations: 0 / 1.351 GB, free: 6.387 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.3527, allocations: 3.938 kB / 1.351 GB, free: 6.383 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.893e-05/0.3527, allocations: 12 kB / 1.351 GB, free: 6.371 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.3533, allocations: 368.6 kB / 1.352 GB, free: 5.961 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.007e-05/0.3534, allocations: 38.56 kB / 1.352 GB, free: 5.914 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.118e-05/0.3534, allocations: 8.859 kB / 1.352 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.3534, allocations: 0 / 1.352 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.3536, allocations: 103.3 kB / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of pre-optimization done (n=9): time 1.133e-06/0.3536, allocations: 0 / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of matching and sorting (n=9): time 0.0002911/0.3539, allocations: 125.5 kB / 1.352 GB, free: 5.66 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.354, allocations: 51.41 kB / 1.352 GB, free: 5.598 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3541, allocations: 129.8 kB / 1.352 GB, free: 5.461 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.3541, allocations: 29.7 kB / 1.352 GB, free: 5.426 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.3542, allocations: 92.36 kB / 1.352 GB, free: 5.328 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.3542, allocations: 19.86 kB / 1.352 GB, free: 5.309 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.3543, allocations: 57.67 kB / 1.352 GB, free: 5.246 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3544, allocations: 322.8 kB / 1.352 GB, free: 4.922 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.3546, allocations: 63.95 kB / 1.353 GB, free: 4.859 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.3548, allocations: 106 kB / 1.353 GB, free: 4.734 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.355, allocations: 185.3 kB / 1.353 GB, free: 4.52 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.355, allocations: 0 / 1.353 GB, free: 4.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000497/0.3555, allocations: 288.8 kB / 1.353 GB, free: 4.219 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.743e-05/0.3556, allocations: 71.55 kB / 1.353 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3556, allocations: 4 kB / 1.353 GB, free: 4.133 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3556, allocations: 0 / 1.353 GB, free: 4.133 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.3557, allocations: 7.938 kB / 1.353 GB, free: 4.125 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3557, allocations: 4 kB / 1.353 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.356, allocations: 51.88 kB / 1.353 GB, free: 4.07 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.356, allocations: 19.92 kB / 1.353 GB, free: 4.051 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.0001127/0.3562, allocations: 125.8 kB / 1.353 GB, free: 3.918 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.3562, allocations: 11.89 kB / 1.353 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.3562, allocations: 8.375 kB / 1.353 GB, free: 3.898 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3562, allocations: 3.984 kB / 1.353 GB, free: 3.895 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3562, allocations: 3.938 kB / 1.353 GB, free: 3.891 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3562, allocations: 4 kB / 1.353 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003508/0.3566, allocations: 354.5 kB / 1.354 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3566, allocations: 0 / 1.354 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-05/0.3566, allocations: 8 kB / 1.354 GB, free: 3.477 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3566, allocations: 0 / 1.354 GB, free: 3.477 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3566, allocations: 4.453 kB / 1.354 GB, free: 3.473 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.3566, allocations: 7.938 kB / 1.354 GB, free: 3.465 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3566, allocations: 0 / 1.354 GB, free: 3.465 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.3568, allocations: 199.4 kB / 1.354 GB, free: 3.254 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.3568, allocations: 81.06 kB / 1.354 GB, free: 3.156 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.3569, allocations: 11.98 kB / 1.354 GB, free: 3.145 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.761e-05/0.3569, allocations: 11.94 kB / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.325e-05/0.357, allocations: 4 kB / 1.354 GB, free: 3.129 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.357, allocations: 7.984 kB / 1.354 GB, free: 3.121 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.481e-05/0.357, allocations: 87.28 kB / 1.354 GB, free: 3.035 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.357, allocations: 0 / 1.354 GB, free: 3.035 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002875/0.3573, allocations: 35.98 kB / 1.354 GB, free: 3 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.0005513/0.3579, allocations: 0.7454 MB / 1.355 GB, free: 2.23 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003648/0.3582, allocations: 226.6 kB / 1.355 GB, free: 1.984 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3582, allocations: 0 / 1.355 GB, free: 1.984 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.597e-05/0.3583, allocations: 31.92 kB / 1.355 GB, free: 1.953 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.3586, allocations: 20.89 kB / 1.355 GB, free: 1.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.3608, allocations: 1.883 MB / 1.357 GB, free: 15.92 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3611, allocations: 0.6885 MB / 1.358 GB, free: 15.21 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.274e-05/0.3612, allocations: 4.672 kB / 1.358 GB, free: 15.2 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.757e-05/0.3612, allocations: 27.42 kB / 1.358 GB, free: 15.18 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3612, allocations: 0 / 1.358 GB, free: 15.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.3898, allocations: 3.029 MB / 1.361 GB, free: 12.28 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.635, allocations: 7.562 kB / 1.361 GB, free: 12.27 MB / 1.061 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable onCounter.trigger in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.trigger from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! Error: Could not read variable onCounter.reset in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.reset from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! Error: Could not read variable onCounter.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv. Warning: Get data of variable onCounter.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.81066376902163]