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.00154/0.001541, allocations: 106.4 kB / 16.27 MB, free: 6.414 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.001476/0.001476, allocations: 190 kB / 17.2 MB, free: 5.953 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.34/1.34, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.644/2.644, allocations: 482.4 MB / 0.7553 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 65.78 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6996/0.7014, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001853/0.7033, allocations: 0.6787 MB / 1.084 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.7047, allocations: 1.196 MB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.673e-05/0.7047, allocations: 0 / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.584e-05/0.7048, allocations: 4.641 kB / 1.085 GB, free: 344 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.6e-05/0.7049, allocations: 11.09 kB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006165/0.7055, allocations: 216 kB / 1.085 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.7057, allocations: 188.9 kB / 1.085 GB, free: 148 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.7058, allocations: 11.73 kB / 1.085 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.7059, allocations: 76.44 kB / 1.085 GB, free: 112 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.706, allocations: 47.17 kB / 1.085 GB, free: 96 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.7061, allocations: 15.94 kB / 1.085 GB, free: 96 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.113e-05/0.7062, allocations: 32.61 kB / 1.085 GB, free: 88 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.7062, allocations: 18.25 kB / 1.085 GB, free: 76 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.7063, allocations: 58.2 kB / 1.085 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.7066, allocations: 155.8 kB / 1.086 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.7066, allocations: 0 / 1.086 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7066, allocations: 0 / 1.086 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.7066, allocations: 1.344 kB / 1.086 GB, free: 15.99 MB / 0.8419 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.0005887/0.7072, allocations: 439.1 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.7072, allocations: 9.562 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.478e-05/0.7073, allocations: 9.141 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.7075, allocations: 176.7 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.7075, allocations: 6.031 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.7076, allocations: 14.23 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.7077, allocations: 55.22 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.7077, allocations: 0.875 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.7077, allocations: 1.125 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.7077, allocations: 0.875 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.521e-05/0.7078, allocations: 17.38 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.7084, allocations: 358.1 kB / 1.087 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.21e-05/0.7085, allocations: 44.34 kB / 1.087 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.252e-05/0.7085, allocations: 12.55 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.7085, allocations: 5.219 kB / 1.087 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.7087, allocations: 90.03 kB / 1.087 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.7087, allocations: 4 kB / 1.087 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9): time 0.0003138/0.7091, allocations: 123.2 kB / 1.087 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.7091, allocations: 62.62 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.7092, allocations: 125.4 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.7093, allocations: 30.94 kB / 1.087 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.7094, allocations: 91.84 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.7094, allocations: 20.39 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.7095, allocations: 55.19 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.7097, allocations: 323.9 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.7098, allocations: 62.08 kB / 1.088 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.71, allocations: 106.9 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.7103, allocations: 183.5 kB / 1.088 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.7103, allocations: 5.594 kB / 1.088 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000486/0.7108, allocations: 276.8 kB / 1.088 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.819e-05/0.7108, allocations: 68.67 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.7109, allocations: 2.5 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.7109, allocations: 5.312 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.019e-05/0.7109, allocations: 6.531 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.7109, allocations: 10.52 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.7113, allocations: 53.48 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.7114, allocations: 20.88 kB / 1.088 GB, free: 13.64 MB / 0.8419 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.000119/0.7115, allocations: 129.2 kB / 1.088 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.7115, allocations: 8.016 kB / 1.088 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.7115, allocations: 9.75 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.7116, allocations: 5.781 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.7116, allocations: 0.7812 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.7116, allocations: 0.7031 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.712, allocations: 363.9 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.712, allocations: 0 / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.712, allocations: 2.172 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.712, allocations: 9.281 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.712, allocations: 2.562 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.712, allocations: 5.344 kB / 1.089 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.712, allocations: 4.641 kB / 1.089 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.7122, allocations: 201.1 kB / 1.089 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.7123, allocations: 80.12 kB / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.7123, allocations: 1.75 kB / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.753e-05/0.7124, allocations: 9.734 kB / 1.089 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.7124, allocations: 10.47 kB / 1.089 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.7124, allocations: 3.562 kB / 1.089 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.697e-05/0.7125, allocations: 96.62 kB / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7125, allocations: 0 / 1.089 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002898/0.7128, allocations: 37.61 kB / 1.089 GB, free: 12.79 MB / 0.8419 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.0001656/0.713, allocations: 101.8 kB / 1.089 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004167/0.7134, allocations: 271.7 kB / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.7134, allocations: 0 / 1.09 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.109e-05/0.7135, allocations: 32.3 kB / 1.09 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.7138, allocations: 24.88 kB / 1.09 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003978/0.7142, allocations: 200.1 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.7145, allocations: 0.6893 MB / 1.091 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.7146, allocations: 11.41 kB / 1.091 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of SimCode: time 3.7e-07/0.7146, allocations: 1.469 kB / 1.091 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of Templates: time 0.003508/0.7181, allocations: 1.494 MB / 1.092 GB, free: 11.48 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=400 -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/jenkins1/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