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.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.001343/0.001343, allocations: 85.3 kB / 19.76 MB, free: 2.023 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.00148/0.00148, allocations: 158.4 kB / 23 MB, free: 4.961 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.49/1.49, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.955/2.955, allocations: 394.2 MB / 0.6386 GB, free: 11.95 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002215/0.002215, allocations: 67.89 kB / 1.009 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.057/1.06, allocations: 181.8 MB / 1.187 GB, free: 16.22 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002147/1.062, allocations: 0.6805 MB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001665/1.064, allocations: 1.21 MB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.303e-05/1.064, allocations: 1.312 kB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.427e-05/1.064, allocations: 4.594 kB / 1.188 GB, free: 14.92 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.235e-05/1.064, allocations: 23.59 kB / 1.188 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007557/1.064, allocations: 216.6 kB / 1.189 GB, free: 14.8 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003014/1.065, allocations: 175.7 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/1.065, allocations: 13.23 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/1.065, allocations: 72.83 kB / 1.189 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/1.065, allocations: 57.89 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.381e-05/1.065, allocations: 15.75 kB / 1.189 GB, free: 14.67 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.361e-05/1.065, allocations: 36.23 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.251e-05/1.065, allocations: 10.33 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 9.973e-05/1.065, allocations: 60.14 kB / 1.189 GB, free: 14.62 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002817/1.066, allocations: 154.3 kB / 1.189 GB, free: 14.58 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.066, allocations: 0.5156 kB / 1.189 GB, free: 14.58 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.743e-06/1.066, allocations: 1 kB / 1.189 GB, free: 14.58 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.202e-06/1.066, allocations: 0 / 1.189 GB, free: 14.58 MB / 1.076 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.0005471/1.066, allocations: 364.9 kB / 1.19 GB, free: 14.23 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/1.066, allocations: 9.375 kB / 1.19 GB, free: 14.23 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.154e-05/1.066, allocations: 13.72 kB / 1.19 GB, free: 14.23 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.428e-05/1.066, allocations: 115.2 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/1.066, allocations: 9.828 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/1.066, allocations: 13.56 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/1.067, allocations: 55.44 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/1.067, allocations: 0 / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/1.067, allocations: 1.781 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/1.067, allocations: 1.766 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.836e-05/1.067, allocations: 13.11 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004624/1.067, allocations: 273.2 kB / 1.19 GB, free: 13.81 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 8.699e-05/1.067, allocations: 30.25 kB / 1.19 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/1.067, allocations: 19.59 kB / 1.19 GB, free: 13.77 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-06/1.067, allocations: 5.375 kB / 1.19 GB, free: 13.76 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/1.067, allocations: 94.34 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/1.067, allocations: 0 / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of matching and sorting (n=9): time 0.0002961/1.068, allocations: 129.1 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/1.068, allocations: 54.95 kB / 1.19 GB, free: 13.57 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/1.068, allocations: 126.4 kB / 1.191 GB, free: 13.46 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/1.068, allocations: 30 kB / 1.191 GB, free: 13.43 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/1.068, allocations: 95.22 kB / 1.191 GB, free: 13.34 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/1.068, allocations: 20.67 kB / 1.191 GB, free: 13.32 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.791e-05/1.068, allocations: 55.52 kB / 1.191 GB, free: 13.29 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.323e-05/1.068, allocations: 323.5 kB / 1.191 GB, free: 12.97 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/1.068, allocations: 126.5 kB / 1.191 GB, free: 12.88 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/1.068, allocations: 178 kB / 1.191 GB, free: 12.73 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/1.069, allocations: 181.5 kB / 1.191 GB, free: 12.57 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.069, allocations: 0 / 1.191 GB, free: 12.57 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004955/1.069, allocations: 353.7 kB / 1.192 GB, free: 12.34 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/1.069, allocations: 67.06 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/1.069, allocations: 2.375 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.069, allocations: 2.594 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.447e-05/1.069, allocations: 8.547 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/1.069, allocations: 3.172 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/1.07, allocations: 53.62 kB / 1.192 GB, free: 12.27 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/1.07, allocations: 12.33 kB / 1.192 GB, free: 12.27 MB / 1.076 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.0001068/1.07, allocations: 132.6 kB / 1.192 GB, free: 12.14 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/1.07, allocations: 8.562 kB / 1.192 GB, free: 12.13 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/1.07, allocations: 10.2 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/1.07, allocations: 1.438 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.07, allocations: 0.75 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/1.07, allocations: 0.6562 kB / 1.192 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/1.07, allocations: 300.5 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/1.07, allocations: 4.609 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.407e-06/1.07, allocations: 1.703 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/1.07, allocations: 1.406 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/1.07, allocations: 2.812 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/1.07, allocations: 0 / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/1.07, allocations: 1.312 kB / 1.192 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001599/1.07, allocations: 207.7 kB / 1.193 GB, free: 11.69 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/1.07, allocations: 13.94 kB / 1.193 GB, free: 11.68 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/1.07, allocations: 3.703 kB / 1.193 GB, free: 11.68 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.323e-05/1.07, allocations: 0.5156 kB / 1.193 GB, free: 11.68 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/1.07, allocations: 10.98 kB / 1.193 GB, free: 11.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/1.07, allocations: 11.45 kB / 1.193 GB, free: 11.67 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.501e-05/1.07, allocations: 100.1 kB / 1.193 GB, free: 11.58 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.07, allocations: 0 / 1.193 GB, free: 11.58 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002781/1.071, allocations: 28.83 kB / 1.193 GB, free: 11.58 MB / 1.076 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.000127/1.071, allocations: 107 kB / 1.193 GB, free: 11.49 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003513/1.071, allocations: 292.6 kB / 1.193 GB, free: 11.25 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.071, allocations: 1.094 kB / 1.193 GB, free: 11.25 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 5.58e-05/1.071, allocations: 28.89 kB / 1.193 GB, free: 11.25 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/1.072, allocations: 17.64 kB / 1.193 GB, free: 11.24 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003405/1.072, allocations: 171.6 kB / 1.193 GB, free: 11.1 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.754e-05/1.072, allocations: 72.86 kB / 1.193 GB, free: 11.03 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.91e-05/1.072, allocations: 7.016 kB / 1.193 GB, free: 11.03 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/1.072, allocations: 13.45 kB / 1.193 GB, free: 11.02 MB / 1.076 GB Notification: Performance of SimCode: time 3.4e-07/1.072, allocations: 4 kB / 1.193 GB, free: 11.02 MB / 1.076 GB Notification: Performance of Templates: time 0.006009/1.078, allocations: 2.13 MB / 1.196 GB, free: 10.76 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile [Timeout 300] (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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.175728208036162]