Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_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.005845/0.00585, allocations: 101.4 kB / 15.73 MB, free: 6.004 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.001308/0.001308, allocations: 193.4 kB / 16.67 MB, free: 5.922 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.954/0.9556, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001793/0.9574, allocations: 0.6866 MB / 1.088 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.9589, allocations: 1.199 MB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.555e-05/0.9589, allocations: 1.125 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.272e-05/0.959, allocations: 4.547 kB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.118e-05/0.9591, allocations: 12.19 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006945/0.9598, allocations: 222.8 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.96, allocations: 193.2 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.9602, allocations: 11.55 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.9603, allocations: 73 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.9604, allocations: 63.08 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.937e-05/0.9605, allocations: 19.44 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.615e-05/0.9606, allocations: 33.56 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.9606, allocations: 11.67 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.068e-05/0.9607, allocations: 61 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.961, allocations: 155.2 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.961, allocations: 0 / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/0.961, allocations: 0 / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.961, allocations: 1.219 kB / 1.09 GB, free: 3.621 MB / 0.8575 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.0005249/0.9616, allocations: 442.3 kB / 1.091 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.9616, allocations: 9.125 kB / 1.091 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.615e-05/0.9616, allocations: 36.39 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.977e-05/0.9617, allocations: 13.25 kB / 1.091 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.904e-05/0.9618, allocations: 172.8 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.9618, allocations: 9.984 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.9619, allocations: 14.52 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.962, allocations: 49.98 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.962, allocations: 1.328 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.962, allocations: 1.141 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.962, allocations: 0.75 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.226e-05/0.9621, allocations: 17.39 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.9626, allocations: 361.7 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.79e-05/0.9627, allocations: 36.81 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.147e-05/0.9627, allocations: 17.23 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.9627, allocations: 0 / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.963, allocations: 95.48 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.963, allocations: 0 / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0002917/0.9633, allocations: 123.6 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.9633, allocations: 57.45 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.197e-05/0.9634, allocations: 126.5 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.9634, allocations: 29.92 kB / 1.092 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.9635, allocations: 91.19 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.9635, allocations: 24.22 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.9636, allocations: 58.34 kB / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.9637, allocations: 324 kB / 1.092 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.9639, allocations: 61.53 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.964, allocations: 111.4 kB / 1.092 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.9642, allocations: 187.4 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.9643, allocations: 0.875 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004741/0.9647, allocations: 277.6 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.9648, allocations: 73.08 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.9648, allocations: 1.875 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9648, allocations: 2.125 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.303e-05/0.9649, allocations: 17.39 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.9649, allocations: 2.406 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.9653, allocations: 53.42 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.9653, allocations: 20.58 kB / 1.093 GB, free: 1.215 MB / 0.8575 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.0001042/0.9654, allocations: 133 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.9654, allocations: 7.938 kB / 1.093 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.9655, allocations: 10.52 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.9655, allocations: 1.406 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.9655, allocations: 0.5625 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.9655, allocations: 1.516 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.9658, allocations: 358.6 kB / 1.093 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.9658, allocations: 0.625 kB / 1.093 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.227e-05/0.9658, allocations: 6.5 kB / 1.093 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.9658, allocations: 0.6875 kB / 1.093 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.9658, allocations: 2.75 kB / 1.093 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.9658, allocations: 8.875 kB / 1.093 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.9658, allocations: 0.5625 kB / 1.093 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.966, allocations: 198.2 kB / 1.094 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.467e-05/0.966, allocations: 83.86 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.9661, allocations: 2.266 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.866e-05/0.9661, allocations: 13.23 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.9662, allocations: 9.75 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.9662, allocations: 4.969 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.372e-05/0.9663, allocations: 91.25 kB / 1.094 GB, free: 392 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9663, allocations: 0.75 kB / 1.094 GB, free: 392 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003114/0.9666, allocations: 33.77 kB / 1.094 GB, free: 388 kB / 0.8575 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.0005049/0.9671, allocations: 0.7418 MB / 1.095 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003915/0.9675, allocations: 253.8 kB / 1.095 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.9675, allocations: 0.8438 kB / 1.095 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.427e-05/0.9676, allocations: 35.95 kB / 1.095 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.9679, allocations: 19.98 kB / 1.095 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.9702, allocations: 1.863 MB / 1.097 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.9704, allocations: 0.6885 MB / 1.097 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.985e-05/0.9705, allocations: 6.828 kB / 1.097 GB, free: 13.24 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.9705, allocations: 22.56 kB / 1.097 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.9705, allocations: 0 / 1.097 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.9929, allocations: 3.02 MB / 1.1 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.852/8.845, allocations: 9.172 kB / 1.1 GB, free: 12.71 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches