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.00117/0.00117, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001392/0.001392, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.074/3.074, allocations: 462.6 MB / 0.736 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.000447, allocations: 11.44 kB / 0.9021 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3725, allocations: 159.6 MB / 1.058 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.000995/0.3735, allocations: 402.4 kB / 1.058 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3751, allocations: 1.186 MB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.772e-05/0.3751, allocations: 3.938 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.954e-05/0.3752, allocations: 3.938 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.273e-05/0.3753, allocations: 11.92 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006738/0.3759, allocations: 197.7 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.3761, allocations: 139.7 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3763, allocations: 8 kB / 1.06 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.3764, allocations: 63.88 kB / 1.06 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.3765, allocations: 43.88 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.3765, allocations: 12 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.726e-05/0.3766, allocations: 19.97 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.3766, allocations: 11.98 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.49e-05/0.3767, allocations: 41.64 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.3769, allocations: 103.7 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.3769, allocations: 0 / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.675e-06/0.3769, allocations: 8 kB / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.3769, allocations: 0 / 1.06 GB, free: 3.012 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.0004849/0.3774, allocations: 418.8 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3775, allocations: 8.031 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.3775, allocations: 15.89 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.3777, allocations: 167 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.3777, allocations: 4 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.3777, allocations: 11.95 kB / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.3779, allocations: 57.61 kB / 1.061 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.3779, allocations: 4 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.3779, allocations: 0 / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.3779, allocations: 0 / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.386e-05/0.378, allocations: 15.98 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.3785, allocations: 352.7 kB / 1.061 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.3787, allocations: 42.55 kB / 1.061 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.763e-05/0.3787, allocations: 20.8 kB / 1.061 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.3787, allocations: 4.078 kB / 1.061 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.3789, allocations: 95.2 kB / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.3789, allocations: 0 / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002832/0.3792, allocations: 121.5 kB / 1.061 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.3793, allocations: 63.38 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.435e-05/0.3794, allocations: 113.8 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.3794, allocations: 41.7 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.775e-05/0.3795, allocations: 92.36 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.855e-05/0.3795, allocations: 19.72 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/0.3795, allocations: 4 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3797, allocations: 323.2 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.3798, allocations: 63.91 kB / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/0.3799, allocations: 110 kB / 1.062 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.3801, allocations: 119.4 kB / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3801, allocations: 3.938 kB / 1.062 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004302/0.3805, allocations: 284.9 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.395e-05/0.3806, allocations: 67.39 kB / 1.063 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3806, allocations: 4 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3806, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.564e-05/0.3807, allocations: 7.984 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.3807, allocations: 4 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.3811, allocations: 79.91 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.3811, allocations: 11.98 kB / 1.063 GB, free: 24 kB / 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 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.3812, allocations: 129.7 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.3813, allocations: 7.906 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.3813, allocations: 16.36 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3813, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3813, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3813, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003243/0.3817, allocations: 358.5 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3817, allocations: 0 / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.186e-05/0.3817, allocations: 7.938 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.3817, allocations: 3.984 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.3817, allocations: 8 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3817, allocations: 0 / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3817, allocations: 0 / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.3819, allocations: 199.3 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.352e-05/0.382, allocations: 85.02 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.382, allocations: 7.984 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.324e-05/0.3821, allocations: 4 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.3821, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.3821, allocations: 15.98 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.046e-05/0.3822, allocations: 91.45 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3822, allocations: 3.938 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002818/0.3825, allocations: 35.94 kB / 1.064 GB, free: 14.97 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001743/0.3826, allocations: 110.2 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.383, allocations: 254.7 kB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.383, allocations: 320 / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.896e-05/0.3831, allocations: 35.94 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.3834, allocations: 19.94 kB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003329/0.3837, allocations: 175.1 kB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.384, allocations: 0.6926 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.78e-05/0.384, allocations: 8.609 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.186e-05/0.3841, allocations: 15.42 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3841, allocations: 0 / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of Templates: time 0.004365/0.3884, allocations: 1.752 MB / 1.067 GB, free: 11.86 MB / 0.8262 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