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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001181/0.001181, allocations: 108 kB / 16.36 MB, free: 5.824 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.001124/0.001124, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.612/2.612, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 64.05 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.347, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001843/0.3488, allocations: 0.6963 MB / 1.027 GB, free: 1.34 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00133/0.3502, allocations: 1.198 MB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.872e-05/0.3502, allocations: 3.938 kB / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.797e-05/0.3503, allocations: 0 / 1.029 GB, free: 124 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.998e-05/0.3504, allocations: 19.81 kB / 1.029 GB, free: 104 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006206/0.351, allocations: 221.7 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.3512, allocations: 187.7 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.148e-05/0.3513, allocations: 12 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.335e-05/0.3514, allocations: 71.88 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.3515, allocations: 59.84 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.3516, allocations: 19.98 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.945e-05/0.3517, allocations: 31.98 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.3517, allocations: 19.92 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/0.3518, allocations: 51.83 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.352, allocations: 151.7 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.352, allocations: 0 / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.864e-06/0.352, allocations: 4 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.352, allocations: 0 / 1.029 GB, free: 15.29 MB / 0.8106 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.0005282/0.3526, allocations: 434.7 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.3526, allocations: 12.03 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.3527, allocations: 16.84 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.3528, allocations: 172.2 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.3528, allocations: 16.31 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.3529, allocations: 8.375 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.353, allocations: 57.8 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.353, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.353, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.353, allocations: 4 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.823e-05/0.3531, allocations: 15.98 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/0.3536, allocations: 364.6 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.877e-05/0.3536, allocations: 38.56 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.771e-05/0.3537, allocations: 16.86 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.3537, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.3539, allocations: 103.2 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.3539, allocations: 0 / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002601/0.3541, allocations: 117.6 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.3542, allocations: 59.41 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.24e-05/0.3543, allocations: 129.7 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.3543, allocations: 33.7 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.3544, allocations: 88.38 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.3544, allocations: 19.78 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.336e-05/0.3545, allocations: 53.69 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.3546, allocations: 322.8 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3547, allocations: 63.97 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.3549, allocations: 106 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.3551, allocations: 185.3 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3551, allocations: 3.984 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004024/0.3555, allocations: 276.8 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.3556, allocations: 67.39 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3556, allocations: 4 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3556, allocations: 0 / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.591e-05/0.3557, allocations: 16.03 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.3557, allocations: 4 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.356, allocations: 59.78 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.356, allocations: 15.98 kB / 1.032 GB, free: 12.15 MB / 0.8106 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.0001/0.3561, allocations: 130.8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.3562, allocations: 15.89 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.42e-05/0.3562, allocations: 8.375 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3562, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.3562, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3562, allocations: 7.938 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.3565, allocations: 350.8 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3565, allocations: 0 / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.195e-05/0.3565, allocations: 8.078 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3566, allocations: 3.938 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3566, allocations: 4 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.3566, allocations: 8 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3566, allocations: 3.938 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.3568, allocations: 187.5 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.3568, allocations: 89 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.3568, allocations: 4 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.153e-05/0.3569, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.3569, allocations: 11.92 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.3569, allocations: 8 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.547e-05/0.357, allocations: 95.27 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.357, allocations: 0 / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002645/0.3573, allocations: 28 kB / 1.033 GB, free: 11.11 MB / 0.8106 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.0001427/0.3574, allocations: 110 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003603/0.3578, allocations: 262.6 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3578, allocations: 320 / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.447e-05/0.3578, allocations: 35.94 kB / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.3581, allocations: 19.97 kB / 1.033 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003276/0.3585, allocations: 170.7 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.3587, allocations: 0.6924 MB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.513e-05/0.3588, allocations: 4.672 kB / 1.034 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.797e-05/0.3588, allocations: 19.38 kB / 1.034 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.3588, allocations: 0 / 1.034 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of Templates: time 0.00443/0.3632, allocations: 1.927 MB / 1.036 GB, free: 7.82 MB / 0.8106 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 -s gbode -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