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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009341/0.009341, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.195/3.195, allocations: 473.4 MB / 0.7469 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0007/0.0007001, allocations: 13.81 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4864/0.4872, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001353/0.4886, allocations: 420.4 kB / 1.075 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002838/0.4915, allocations: 1.213 MB / 1.076 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.4916, allocations: 4 kB / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.82e-05/0.4917, allocations: 0 / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.4918, allocations: 11.92 kB / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.4929, allocations: 206.7 kB / 1.076 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.4932, allocations: 163.6 kB / 1.076 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.4934, allocations: 4 kB / 1.076 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.4935, allocations: 71.81 kB / 1.076 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.4937, allocations: 47.88 kB / 1.076 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.4937, allocations: 8 kB / 1.076 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.4939, allocations: 19.98 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.455e-05/0.4939, allocations: 15.92 kB / 1.076 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.494, allocations: 81.52 kB / 1.076 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002853/0.4943, allocations: 143.6 kB / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.4943, allocations: 0 / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.195e-06/0.4943, allocations: 0 / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.4944, allocations: 0 / 1.077 GB, free: 5.125 MB / 0.8262 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.0008253/0.4952, allocations: 415.1 kB / 1.077 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 8.863e-05/0.4953, allocations: 12.03 kB / 1.077 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.4954, allocations: 12.84 kB / 1.077 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.4957, allocations: 172.3 kB / 1.077 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.4957, allocations: 4.375 kB / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.4958, allocations: 8.375 kB / 1.077 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001908/0.496, allocations: 61.8 kB / 1.077 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.496, allocations: 0 / 1.077 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.496, allocations: 0 / 1.077 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.496, allocations: 0 / 1.077 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.471e-05/0.4961, allocations: 12 kB / 1.077 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007796/0.4969, allocations: 364.6 kB / 1.078 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.497, allocations: 42.5 kB / 1.078 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.687e-05/0.4971, allocations: 12.86 kB / 1.078 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.4971, allocations: 3.938 kB / 1.078 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.4973, allocations: 95.39 kB / 1.078 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.884e-06/0.4973, allocations: 0 / 1.078 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003223/0.4976, allocations: 129.5 kB / 1.078 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.4977, allocations: 55.77 kB / 1.078 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.4978, allocations: 125.7 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.4979, allocations: 33.7 kB / 1.078 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.498, allocations: 88.38 kB / 1.078 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.498, allocations: 23.73 kB / 1.078 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.4981, allocations: 21.72 kB / 1.078 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4982, allocations: 330.8 kB / 1.078 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.4984, allocations: 59.97 kB / 1.078 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.4986, allocations: 102 kB / 1.079 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.4988, allocations: 189.3 kB / 1.079 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4988, allocations: 0 / 1.079 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004919/0.4993, allocations: 276.8 kB / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.55e-05/0.4994, allocations: 67.55 kB / 1.079 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.4994, allocations: 8 kB / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.4994, allocations: 0 / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.344e-05/0.4995, allocations: 11.94 kB / 1.079 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4995, allocations: 3.984 kB / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.5, allocations: 83.78 kB / 1.079 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.5, allocations: 15.98 kB / 1.079 GB, free: 2.023 MB / 0.8262 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.0001406/0.5002, allocations: 123.1 kB / 1.079 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.5002, allocations: 4 kB / 1.079 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.5002, allocations: 16.38 kB / 1.079 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5002, allocations: 0 / 1.079 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5003, allocations: 0 / 1.079 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-06/0.5003, allocations: 7.984 kB / 1.079 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.5006, allocations: 358.4 kB / 1.08 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.5007, allocations: 7.938 kB / 1.08 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.828e-06/0.5007, allocations: 3.938 kB / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.5007, allocations: 96 / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.5007, allocations: 4 kB / 1.08 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.5007, allocations: 11.98 kB / 1.08 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5007, allocations: 7.922 kB / 1.08 GB, free: 1.426 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.501, allocations: 187.6 kB / 1.08 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-05/0.501, allocations: 89.11 kB / 1.08 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.5011, allocations: 3.938 kB / 1.08 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.403e-05/0.5011, allocations: 3.984 kB / 1.08 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.5012, allocations: 7.938 kB / 1.08 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.5012, allocations: 8 kB / 1.08 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.405e-05/0.5012, allocations: 95.27 kB / 1.08 GB, free: 1.004 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5012, allocations: 0 / 1.08 GB, free: 1.004 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000301/0.5016, allocations: 28 kB / 1.08 GB, free: 0.9766 MB / 0.8262 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.0002298/0.5018, allocations: 109.1 kB / 1.08 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004217/0.5022, allocations: 258.6 kB / 1.08 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5022, allocations: 0 / 1.08 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.669e-05/0.5023, allocations: 32.3 kB / 1.081 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.5027, allocations: 21.39 kB / 1.081 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005132/0.5032, allocations: 186.9 kB / 1.081 GB, free: 328 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.5037, allocations: 0.6965 MB / 1.081 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.963e-05/0.5038, allocations: 4.672 kB / 1.081 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.5038, allocations: 11.44 kB / 1.081 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of SimCode: time 5.81e-07/0.5038, allocations: 0 / 1.081 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of Templates: time 0.005443/0.5092, allocations: 1.826 MB / 1.083 GB, free: 13.78 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches