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.001474/0.001474, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001519/0.001519, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.571/1.571, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.388/3.388, allocations: 0.4899 GB / 0.7916 GB, free: 33.4 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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") [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.002144/0.002144, allocations: 67.62 kB / 1.149 GB, free: 26.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4043, allocations: 176.1 MB / 1.321 GB, free: 2.828 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001998/0.4063, allocations: 0.6901 MB / 1.322 GB, free: 2.141 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.408, allocations: 1.226 MB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.717e-05/0.408, allocations: 11.94 kB / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.4081, allocations: 3.938 kB / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.073e-05/0.4082, allocations: 11.86 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006705/0.4088, allocations: 224 kB / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.4091, allocations: 171.8 kB / 1.324 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.744e-05/0.4092, allocations: 7.984 kB / 1.324 GB, free: 496 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.4093, allocations: 71.88 kB / 1.324 GB, free: 424 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.4094, allocations: 67.84 kB / 1.324 GB, free: 356 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.4095, allocations: 16 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.321e-05/0.4096, allocations: 31.92 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.4096, allocations: 15.92 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.198e-05/0.4097, allocations: 59.81 kB / 1.324 GB, free: 232 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.4099, allocations: 155.6 kB / 1.324 GB, free: 76 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.4099, allocations: 4 kB / 1.324 GB, free: 72 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.492e-06/0.4099, allocations: 0 / 1.324 GB, free: 72 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.4099, allocations: 0 / 1.324 GB, free: 72 kB / 1.014 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.0006486/0.4106, allocations: 446.6 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.4106, allocations: 11.98 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/0.4107, allocations: 12.89 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.4109, allocations: 168.3 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4109, allocations: 8.375 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.4109, allocations: 12.36 kB / 1.325 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.411, allocations: 49.62 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4111, allocations: 7.922 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.4111, allocations: 3.984 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4111, allocations: 0 / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.2e-05/0.4111, allocations: 16 kB / 1.325 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006021/0.4117, allocations: 364.6 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.343e-05/0.4118, allocations: 30.58 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.908e-05/0.4119, allocations: 20.88 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.4119, allocations: 0 / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.4121, allocations: 99.3 kB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.4121, allocations: 0 / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003079/0.4124, allocations: 125.5 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.4125, allocations: 51.41 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.4126, allocations: 121.8 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.4126, allocations: 33.7 kB / 1.325 GB, free: 14.31 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.4127, allocations: 92.36 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.4128, allocations: 19.89 kB / 1.326 GB, free: 14.19 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.4129, allocations: 53.69 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001859/0.4131, allocations: 326.8 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.4132, allocations: 63.91 kB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.4134, allocations: 106 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.4136, allocations: 185.3 kB / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4136, allocations: 0 / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004991/0.4141, allocations: 284.8 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-05/0.4142, allocations: 71.55 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4142, allocations: 7.938 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.4143, allocations: 0 / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.505e-05/0.4143, allocations: 11.98 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.4143, allocations: 7.984 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.4147, allocations: 55.83 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.4147, allocations: 12 kB / 1.327 GB, free: 12.93 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.0001207/0.4148, allocations: 137.7 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.4148, allocations: 7.953 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.4149, allocations: 8.375 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4149, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4149, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4149, allocations: 4 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003716/0.4152, allocations: 362.8 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4152, allocations: 0 / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.144e-05/0.4153, allocations: 8 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4153, allocations: 0 / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.4153, allocations: 4 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4153, allocations: 4 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4153, allocations: 3.938 kB / 1.327 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.4156, allocations: 199.4 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.4156, allocations: 81.06 kB / 1.327 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.4156, allocations: 4 kB / 1.327 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.676e-05/0.4157, allocations: 8 kB / 1.327 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.769e-05/0.4157, allocations: 15.86 kB / 1.327 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.4157, allocations: 4 kB / 1.328 GB, free: 11.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001142/0.4159, allocations: 91.27 kB / 1.328 GB, free: 11.9 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4159, allocations: 0 / 1.328 GB, free: 11.9 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002918/0.4161, allocations: 32 kB / 1.328 GB, free: 11.87 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.0001726/0.4163, allocations: 107.2 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004031/0.4167, allocations: 234.7 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4167, allocations: 3.938 kB / 1.328 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.874e-05/0.4168, allocations: 23.98 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.4171, allocations: 20.3 kB / 1.328 GB, free: 11.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.4175, allocations: 168.2 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4178, allocations: 0.7042 MB / 1.329 GB, free: 10.54 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.758e-05/0.4178, allocations: 4.953 kB / 1.329 GB, free: 10.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.4179, allocations: 19.42 kB / 1.329 GB, free: 10.51 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.4179, allocations: 0 / 1.329 GB, free: 10.51 MB / 1.029 GB Notification: Performance of Templates: time 0.005756/0.4236, allocations: 1.921 MB / 1.331 GB, free: 8.617 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.5957280122675]