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.001496/0.001496, allocations: 116.3 kB / 17.13 MB, free: 6.027 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.001527/0.001527, allocations: 208.7 kB / 20.1 MB, free: 3.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.487/1.487, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.916/2.916, allocations: 0.49 GB / 0.7923 GB, free: 1.32 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.002109/0.002109, allocations: 67.91 kB / 1.15 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9582/0.9603, allocations: 176.1 MB / 1.322 GB, free: 25.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001653/0.962, allocations: 0.6849 MB / 1.323 GB, free: 24.7 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001147/0.9631, allocations: 1.232 MB / 1.324 GB, free: 23.8 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.99e-05/0.9632, allocations: 0 / 1.324 GB, free: 23.8 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.9632, allocations: 3.938 kB / 1.324 GB, free: 23.8 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.84e-05/0.9633, allocations: 17.73 kB / 1.324 GB, free: 23.79 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005788/0.9638, allocations: 219.2 kB / 1.324 GB, free: 23.68 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.964, allocations: 180.2 kB / 1.324 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 7.907e-05/0.9641, allocations: 10.59 kB / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.425e-05/0.9642, allocations: 71.86 kB / 1.324 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.9643, allocations: 67.84 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.9643, allocations: 15.97 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.022e-05/0.9644, allocations: 40.69 kB / 1.324 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.9644, allocations: 8.875 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.733e-05/0.9645, allocations: 61.66 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001735/0.9646, allocations: 150 kB / 1.325 GB, free: 23.45 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.9646, allocations: 0 / 1.325 GB, free: 23.45 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.282e-06/0.9646, allocations: 3.938 kB / 1.325 GB, free: 23.45 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.9647, allocations: 4 kB / 1.325 GB, free: 23.45 MB / 1.061 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.0004329/0.9651, allocations: 441.5 kB / 1.325 GB, free: 23.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.9651, allocations: 12.73 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.726e-05/0.9652, allocations: 13.67 kB / 1.325 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.844e-05/0.9652, allocations: 167.3 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.9653, allocations: 10.23 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.9653, allocations: 11.03 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.722e-05/0.9654, allocations: 60.03 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.9654, allocations: 4 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.9654, allocations: 0 / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.9654, allocations: 2.844 kB / 1.325 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.5e-05/0.9654, allocations: 12.59 kB / 1.325 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.9658, allocations: 356 kB / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.33e-05/0.9659, allocations: 40.36 kB / 1.326 GB, free: 22.4 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.383e-05/0.9659, allocations: 17.12 kB / 1.326 GB, free: 22.39 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.966, allocations: 4 kB / 1.326 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000141/0.9661, allocations: 91.05 kB / 1.326 GB, free: 22.32 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.9661, allocations: 0 / 1.326 GB, free: 22.32 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0002412/0.9663, allocations: 126.8 kB / 1.326 GB, free: 22.26 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.9664, allocations: 54.22 kB / 1.326 GB, free: 22.2 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.871e-05/0.9664, allocations: 126.3 kB / 1.326 GB, free: 22.09 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.9665, allocations: 30.83 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.458e-05/0.9665, allocations: 94.06 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.469e-05/0.9665, allocations: 22 kB / 1.326 GB, free: 21.95 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.417e-05/0.9666, allocations: 48.81 kB / 1.326 GB, free: 21.92 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.9666, allocations: 329.2 kB / 1.327 GB, free: 21.6 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.9668, allocations: 65.78 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.9669, allocations: 118.6 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.9671, allocations: 175.3 kB / 1.327 GB, free: 21.33 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.9671, allocations: 2.906 kB / 1.327 GB, free: 21.33 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003801/0.9674, allocations: 294.2 kB / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.9675, allocations: 67.33 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.9675, allocations: 2.719 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.9675, allocations: 1.75 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.673e-05/0.9675, allocations: 4.25 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.9676, allocations: 2.281 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.9679, allocations: 56.75 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.9679, allocations: 17.83 kB / 1.327 GB, free: 21.08 MB / 1.061 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 7.768e-05/0.968, allocations: 129.7 kB / 1.328 GB, free: 20.96 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.968, allocations: 7.266 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.968, allocations: 10.25 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.968, allocations: 1.156 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.968, allocations: 0.9375 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9681, allocations: 4 kB / 1.328 GB, free: 20.94 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002664/0.9683, allocations: 361.5 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9683, allocations: 0.7188 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.9683, allocations: 1.031 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.9683, allocations: 1.688 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.9683, allocations: 0.5 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.9683, allocations: 0.75 kB / 1.328 GB, free: 20.61 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.9683, allocations: 5.094 kB / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001708/0.9685, allocations: 206.3 kB / 1.328 GB, free: 20.44 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.9685, allocations: 87.78 kB / 1.328 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.9686, allocations: 8.047 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.374e-05/0.9686, allocations: 0.9688 kB / 1.328 GB, free: 20.33 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.9686, allocations: 14.59 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.9687, allocations: 3.312 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.544e-05/0.9687, allocations: 95.39 kB / 1.328 GB, free: 20.24 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9687, allocations: 0 / 1.328 GB, free: 20.24 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002948/0.969, allocations: 33.62 kB / 1.328 GB, free: 20.24 MB / 1.061 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.0001318/0.9691, allocations: 111.2 kB / 1.328 GB, free: 20.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003184/0.9694, allocations: 228.1 kB / 1.329 GB, free: 19.98 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.9694, allocations: 0 / 1.329 GB, free: 19.98 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.114e-05/0.9695, allocations: 29 kB / 1.329 GB, free: 19.97 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.9698, allocations: 18.78 kB / 1.329 GB, free: 19.97 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.9701, allocations: 202.2 kB / 1.329 GB, free: 19.79 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.9702, allocations: 0.6884 MB / 1.33 GB, free: 19.1 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.9703, allocations: 11.47 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.9703, allocations: 0.5312 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of Templates: time 0.003666/0.9739, allocations: 1.485 MB / 1.331 GB, free: 18.96 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.447704060003161]