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.002521/0.002521, allocations: 83.69 kB / 20.24 MB, free: 4.184 MB / 18.57 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.002896/0.002896, allocations: 161.3 kB / 23.55 MB, free: 0.8711 MB / 18.57 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.603/1.603, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.075/3.075, allocations: 377.8 MB / 0.6232 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.504e-06/2.504e-06, allocations: 0 / 0.8108 GB, free: 0.9648 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.057e-05/3.307e-05, allocations: 3.188 kB / 0.8108 GB, free: 0.9609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002808/0.002841, allocations: 0.6741 MB / 0.8115 GB, free: 320 kB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002843/0.005684, allocations: 1.231 MB / 0.8127 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.642e-05/0.00574, allocations: 0.7188 kB / 0.8127 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 3.211e-05/0.005772, allocations: 3.938 kB / 0.8127 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.005896, allocations: 25.17 kB / 0.8127 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.006903, allocations: 213.4 kB / 0.8129 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.007318, allocations: 175.7 kB / 0.8131 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.007422, allocations: 12.89 kB / 0.8131 GB, free: 14.65 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.007677, allocations: 99.86 kB / 0.8132 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.007878, allocations: 52.56 kB / 0.8132 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 7.122e-05/0.007949, allocations: 16 kB / 0.8133 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.008082, allocations: 28.53 kB / 0.8133 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 4.051e-05/0.008122, allocations: 13.19 kB / 0.8133 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.008259, allocations: 55.94 kB / 0.8133 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.008696, allocations: 183.5 kB / 0.8135 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.008704, allocations: 4 kB / 0.8135 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.633e-06/0.008705, allocations: 2.25 kB / 0.8135 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.00871, allocations: 0 / 0.8135 GB, free: 14.21 MB / 0.7292 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.0009286/0.009639, allocations: 471.4 kB / 0.814 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.009689, allocations: 8.031 kB / 0.814 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.009801, allocations: 12.89 kB / 0.814 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.009998, allocations: 116.6 kB / 0.8141 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/0.01004, allocations: 17.02 kB / 0.8141 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.01009, allocations: 8.375 kB / 0.8141 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.01028, allocations: 55.77 kB / 0.8142 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.01029, allocations: 3.938 kB / 0.8142 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.01031, allocations: 0 / 0.8142 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.01032, allocations: 0 / 0.8142 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.731e-05/0.01038, allocations: 13.12 kB / 0.8142 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008108/0.01119, allocations: 331.7 kB / 0.8145 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.01136, allocations: 47.53 kB / 0.8146 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.152e-05/0.01142, allocations: 23.77 kB / 0.8146 GB, free: 13 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.01143, allocations: 1.188 kB / 0.8146 GB, free: 13 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.01169, allocations: 96.97 kB / 0.8147 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.01169, allocations: 5.344 kB / 0.8147 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9): time 0.0005044/0.01219, allocations: 137.5 kB / 0.8148 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.01226, allocations: 55.41 kB / 0.8149 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.0125, allocations: 189.8 kB / 0.8151 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.01256, allocations: 30.23 kB / 0.8151 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.01272, allocations: 143.6 kB / 0.8152 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.01276, allocations: 23.84 kB / 0.8152 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.01295, allocations: 59.86 kB / 0.8153 GB, free: 12.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0003723/0.01332, allocations: 0.4932 MB / 0.8158 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.01367, allocations: 139.4 kB / 0.8159 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/0.01411, allocations: 202 kB / 0.8161 GB, free: 11.31 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.01458, allocations: 219 kB / 0.8163 GB, free: 11.06 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.01458, allocations: 3.938 kB / 0.8163 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001036/0.01562, allocations: 381.5 kB / 0.8167 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.01573, allocations: 68.05 kB / 0.8167 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.01574, allocations: 0 / 0.8167 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.01575, allocations: 4.719 kB / 0.8168 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.01583, allocations: 11.92 kB / 0.8168 GB, free: 10.56 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.01584, allocations: 4.531 kB / 0.8168 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004193/0.01626, allocations: 41.31 kB / 0.8168 GB, free: 10.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.215e-05/0.01632, allocations: 19.97 kB / 0.8168 GB, free: 10.5 MB / 0.7292 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.0002246/0.01655, allocations: 175.1 kB / 0.817 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.01659, allocations: 16.72 kB / 0.817 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.01663, allocations: 8.438 kB / 0.817 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.01664, allocations: 5.312 kB / 0.817 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.01664, allocations: 0 / 0.817 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01665, allocations: 0 / 0.817 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005964/0.01724, allocations: 365.3 kB / 0.8174 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01725, allocations: 0.5 kB / 0.8174 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.299e-05/0.01726, allocations: 0.7188 kB / 0.8174 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01726, allocations: 0 / 0.8174 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.01729, allocations: 5.719 kB / 0.8174 GB, free: 9.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.01729, allocations: 0 / 0.8174 GB, free: 9.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.01729, allocations: 7.922 kB / 0.8174 GB, free: 9.875 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004278/0.01772, allocations: 259.8 kB / 0.8176 GB, free: 9.602 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.174e-05/0.01774, allocations: 7.953 kB / 0.8176 GB, free: 9.594 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.01777, allocations: 0.875 kB / 0.8176 GB, free: 9.594 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.01788, allocations: 11.98 kB / 0.8177 GB, free: 9.582 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.01793, allocations: 11.55 kB / 0.8177 GB, free: 9.574 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.01796, allocations: 7.984 kB / 0.8177 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001381/0.0181, allocations: 135.7 kB / 0.8178 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.0181, allocations: 0 / 0.8178 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000532/0.01863, allocations: 35.98 kB / 0.8178 GB, free: 9.398 MB / 0.7292 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.000241/0.01887, allocations: 107.2 kB / 0.8179 GB, free: 9.285 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007715/0.01964, allocations: 346.2 kB / 0.8183 GB, free: 8.906 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.01964, allocations: 1.844 kB / 0.8183 GB, free: 8.906 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.01974, allocations: 39.61 kB / 0.8183 GB, free: 8.863 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.02024, allocations: 25.33 kB / 0.8183 GB, free: 8.84 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005819/0.02082, allocations: 178 kB / 0.8185 GB, free: 8.641 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.02094, allocations: 81.36 kB / 0.8186 GB, free: 8.543 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.867e-05/0.02098, allocations: 4.734 kB / 0.8186 GB, free: 8.539 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.02102, allocations: 12.5 kB / 0.8186 GB, free: 8.527 MB / 0.7292 GB Notification: Performance of SimCode: time 5.51e-07/0.02102, allocations: 3.219 kB / 0.8186 GB, free: 8.527 MB / 0.7292 GB Notification: Performance of Templates: time 0.008052/0.02908, allocations: 2.129 MB / 0.8207 GB, free: 6.477 MB / 0.7292 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 240] 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: 8.271762570017017]