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.001448/0.001448, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001695/0.001695, allocations: 212.3 kB / 22.99 MB, free: 4.984 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.321/3.321, allocations: 0.49 GB / 0.7959 GB, free: 35.59 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.002152/0.002152, allocations: 67.47 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4078/0.4099, allocations: 176.1 MB / 1.327 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002036/0.412, allocations: 0.673 MB / 1.328 GB, free: 332 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.4137, allocations: 1.229 MB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.4138, allocations: 4 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.382e-05/0.4138, allocations: 7.938 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.092e-05/0.4139, allocations: 11.86 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007025/0.4146, allocations: 218.2 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.4148, allocations: 187.6 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.031e-05/0.4149, allocations: 4 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.415, allocations: 71.88 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.4152, allocations: 67.84 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.4152, allocations: 16 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.284e-05/0.4153, allocations: 31.98 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.442e-05/0.4153, allocations: 8 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.521e-05/0.4154, allocations: 59.81 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.4156, allocations: 155.6 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4157, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.502e-06/0.4157, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.4157, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 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.0006495/0.4163, allocations: 367 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4164, allocations: 12.02 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.881e-05/0.4164, allocations: 16.89 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.4165, allocations: 114.4 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.4166, allocations: 8.375 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/0.4166, allocations: 8.375 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.4167, allocations: 53.61 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.4168, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.4168, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4168, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.059e-05/0.4168, allocations: 15.98 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005552/0.4174, allocations: 284.3 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.647e-05/0.4175, allocations: 34.55 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.131e-05/0.4175, allocations: 20.86 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.477e-06/0.4175, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.4177, allocations: 99.31 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.4177, allocations: 4 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=9): time 0.0003134/0.418, allocations: 121.6 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.4181, allocations: 51.41 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.4182, allocations: 133.7 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.4183, allocations: 29.7 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.4183, allocations: 92.36 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.4184, allocations: 23.89 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.4185, allocations: 49.69 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4186, allocations: 326.8 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.4188, allocations: 119.4 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.419, allocations: 171.6 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.4193, allocations: 193.3 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4193, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005156/0.4198, allocations: 348.2 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.4199, allocations: 63.39 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4199, allocations: 3.984 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.4199, allocations: 4 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/0.42, allocations: 11.94 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.42, allocations: 4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.4203, allocations: 59.98 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.432e-05/0.4204, allocations: 11.98 kB / 1.332 GB, free: 11.16 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.0001248/0.4205, allocations: 131.2 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.4205, allocations: 7.953 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.4205, allocations: 8.375 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4205, allocations: 0 / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.4205, allocations: 0 / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4205, allocations: 7.984 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.4209, allocations: 310.4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4209, allocations: 0 / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.151e-05/0.4209, allocations: 4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4209, allocations: 0 / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.4209, allocations: 4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.4209, allocations: 4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4209, allocations: 0 / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.4211, allocations: 203.3 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.345e-05/0.4211, allocations: 11.95 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.855e-05/0.4212, allocations: 0 / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.111e-05/0.4212, allocations: 0 / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.4212, allocations: 11.98 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.4213, allocations: 8 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.422e-05/0.4213, allocations: 95.2 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4213, allocations: 0 / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002775/0.4216, allocations: 28 kB / 1.333 GB, free: 10.28 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.0001757/0.4218, allocations: 111.2 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004263/0.4222, allocations: 294 kB / 1.334 GB, free: 9.84 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4222, allocations: 4.25 kB / 1.334 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.819e-05/0.4223, allocations: 31.92 kB / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.4226, allocations: 15.98 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/0.423, allocations: 166.9 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.73e-05/0.423, allocations: 79.27 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.727e-05/0.4231, allocations: 4.672 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.4231, allocations: 15.44 kB / 1.334 GB, free: 9.484 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.4231, allocations: 0 / 1.334 GB, free: 9.484 MB / 1.029 GB Notification: Performance of Templates: time 0.005432/0.4285, allocations: 2.175 MB / 1.336 GB, free: 7.359 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 -s cvode -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: 9.42015230699326]