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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01165/0.01165, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002532/0.002532, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.798/2.798, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 63.91 kB / 1.054 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.015/1.016, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002327/1.018, allocations: 0.6723 MB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002218/1.021, allocations: 1.201 MB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.595e-05/1.021, allocations: 7.938 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.598e-05/1.021, allocations: 7.938 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001407/1.021, allocations: 11.86 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001106/1.022, allocations: 221 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004009/1.022, allocations: 187.7 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/1.023, allocations: 12 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/1.023, allocations: 71.81 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/1.023, allocations: 67.83 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/1.023, allocations: 16 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/1.023, allocations: 31.98 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.635e-05/1.023, allocations: 11.98 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/1.023, allocations: 55.83 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003857/1.024, allocations: 159.6 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/1.024, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.034e-06/1.024, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.177e-05/1.024, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.9356 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.0008267/1.025, allocations: 444.4 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.025, allocations: 8.031 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.462e-05/1.025, allocations: 8.938 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/1.025, allocations: 176.2 kB / 1.211 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/1.025, allocations: 8.375 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/1.025, allocations: 12.31 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001615/1.025, allocations: 61.59 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/1.025, allocations: 0 / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/1.025, allocations: 0 / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/1.025, allocations: 4 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.774e-05/1.025, allocations: 15.98 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007109/1.026, allocations: 348.8 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/1.026, allocations: 38.5 kB / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.552e-05/1.026, allocations: 16.86 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.015e-05/1.026, allocations: 0 / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/1.027, allocations: 99.34 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/1.027, allocations: 0 / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9): time 0.0003508/1.027, allocations: 129.5 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/1.027, allocations: 59.28 kB / 1.212 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/1.027, allocations: 125.8 kB / 1.212 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/1.027, allocations: 33.7 kB / 1.212 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.427e-05/1.027, allocations: 88.38 kB / 1.212 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/1.027, allocations: 27.72 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/1.027, allocations: 53.69 kB / 1.212 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.028, allocations: 322.8 kB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/1.028, allocations: 63.97 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/1.028, allocations: 106 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/1.028, allocations: 189.3 kB / 1.213 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/1.028, allocations: 3.984 kB / 1.213 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004585/1.029, allocations: 280.8 kB / 1.213 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/1.029, allocations: 67.39 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.029, allocations: 4 kB / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/1.029, allocations: 0 / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.691e-05/1.029, allocations: 4 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/1.029, allocations: 7.938 kB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/1.029, allocations: 55.97 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/1.029, allocations: 19.98 kB / 1.213 GB, free: 7.758 MB / 0.9356 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.0001118/1.029, allocations: 121.8 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.022e-05/1.029, allocations: 11.89 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/1.029, allocations: 8.375 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.029, allocations: 0 / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/1.029, allocations: 4 kB / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.029, allocations: 0 / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/1.03, allocations: 362.4 kB / 1.214 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.03, allocations: 4.469 kB / 1.214 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.66e-05/1.03, allocations: 7.922 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/1.03, allocations: 0 / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/1.03, allocations: 7.938 kB / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/1.03, allocations: 0 / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.03, allocations: 7.875 kB / 1.214 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/1.03, allocations: 195.4 kB / 1.214 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/1.03, allocations: 85.09 kB / 1.214 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/1.03, allocations: 12 kB / 1.214 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.289e-05/1.03, allocations: 0 / 1.214 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/1.03, allocations: 11.92 kB / 1.214 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/1.03, allocations: 4 kB / 1.214 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.569e-05/1.03, allocations: 95.27 kB / 1.214 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.91e-07/1.03, allocations: 0 / 1.214 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000296/1.031, allocations: 31.91 kB / 1.214 GB, free: 6.703 MB / 0.9356 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.0002082/1.031, allocations: 107.2 kB / 1.214 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004289/1.031, allocations: 262.6 kB / 1.214 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.031, allocations: 0 / 1.214 GB, free: 6.309 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.523e-05/1.031, allocations: 28 kB / 1.214 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/1.032, allocations: 25.83 kB / 1.214 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005235/1.032, allocations: 162.7 kB / 1.215 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/1.033, allocations: 0.6963 MB / 1.215 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.474e-05/1.033, allocations: 4.953 kB / 1.215 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.065e-05/1.033, allocations: 11.72 kB / 1.215 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of SimCode: time 5e-07/1.033, allocations: 0 / 1.215 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of Templates: time 0.006153/1.039, allocations: 1.921 MB / 1.217 GB, free: 3.438 MB / 0.9356 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=480 -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/jenkins/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