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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008595/0.008595, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001939/0.001939, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.72/2.72, allocations: 469.4 MB / 0.7422 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001375, allocations: 71.88 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.033/1.034, allocations: 159.1 MB / 1.22 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002144/1.037, allocations: 0.6632 MB / 1.22 GB, free: 1.586 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001733/1.038, allocations: 1.201 MB / 1.222 GB, free: 380 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.066e-05/1.038, allocations: 3.938 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.382e-05/1.039, allocations: 3.938 kB / 1.222 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.811e-05/1.039, allocations: 23.84 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/1.039, allocations: 222 kB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002649/1.04, allocations: 183.8 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.244e-05/1.04, allocations: 15.98 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/1.04, allocations: 71.88 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/1.04, allocations: 63.83 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.528e-05/1.04, allocations: 16 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.107e-05/1.04, allocations: 35.92 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/1.04, allocations: 11.94 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.333e-05/1.04, allocations: 63.81 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002164/1.04, allocations: 150.3 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/1.04, allocations: 4 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.483e-06/1.04, allocations: 0 / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.991e-06/1.04, allocations: 0 / 1.222 GB, free: 15.53 MB / 0.9512 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.0005146/1.041, allocations: 439.6 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/1.041, allocations: 8.625 kB / 1.223 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.239e-05/1.041, allocations: 34.75 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.784e-05/1.041, allocations: 12.89 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/1.041, allocations: 184.2 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/1.041, allocations: 8.312 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/1.041, allocations: 12.12 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/1.041, allocations: 61.61 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/1.041, allocations: 0 / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/1.041, allocations: 0 / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/1.041, allocations: 0 / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.05e-05/1.042, allocations: 15.98 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005159/1.042, allocations: 356.8 kB / 1.223 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.028e-05/1.042, allocations: 38.5 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.792e-05/1.042, allocations: 12.86 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 6.693e-06/1.042, allocations: 0 / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/1.042, allocations: 99.39 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/1.042, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9): time 0.0002817/1.043, allocations: 125.6 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/1.043, allocations: 51.41 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.414e-05/1.043, allocations: 125.8 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/1.043, allocations: 33.7 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/1.043, allocations: 92.36 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/1.043, allocations: 27.78 kB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.428e-05/1.043, allocations: 49.69 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.043, allocations: 322.8 kB / 1.224 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/1.043, allocations: 67.95 kB / 1.224 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/1.044, allocations: 113.2 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/1.044, allocations: 181.3 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.044, allocations: 0 / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004513/1.044, allocations: 280.8 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/1.044, allocations: 75.33 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/1.044, allocations: 0 / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/1.044, allocations: 4.375 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.573e-05/1.044, allocations: 8.156 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/1.044, allocations: 3.938 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/1.045, allocations: 55.94 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/1.045, allocations: 23.86 kB / 1.225 GB, free: 12.34 MB / 0.9512 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.0001081/1.045, allocations: 126.3 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/1.045, allocations: 11.95 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/1.045, allocations: 12.36 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/1.045, allocations: 4 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.045, allocations: 0 / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/1.045, allocations: 0 / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003084/1.045, allocations: 358.5 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/1.045, allocations: 0 / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.258e-05/1.045, allocations: 3.938 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/1.045, allocations: 3.984 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/1.045, allocations: 4 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/1.045, allocations: 7.938 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/1.045, allocations: 0 / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001821/1.046, allocations: 195.4 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/1.046, allocations: 85.06 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/1.046, allocations: 3.984 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.689e-05/1.046, allocations: 4.031 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/1.046, allocations: 11.98 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/1.046, allocations: 7.984 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.24e-05/1.046, allocations: 95.27 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/1.046, allocations: 0 / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003028/1.046, allocations: 36 kB / 1.226 GB, free: 11.29 MB / 0.9512 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.0004805/1.047, allocations: 0.732 MB / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003541/1.047, allocations: 262.6 kB / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.047, allocations: 0 / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 6.299e-05/1.047, allocations: 35.92 kB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/1.047, allocations: 21.64 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/1.049, allocations: 1.85 MB / 1.229 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/1.05, allocations: 0.6962 MB / 1.23 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.062e-05/1.05, allocations: 4.672 kB / 1.23 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/1.05, allocations: 23.42 kB / 1.23 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/1.05, allocations: 0 / 1.23 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/1.069, allocations: 3.017 MB / 1.233 GB, free: 4.582 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.79, allocations: 15.86 kB / 1.233 GB, free: 4.566 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/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