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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> 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.007904/0.007904, allocations: 99.27 kB / 15.73 MB, free: 6.039 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.001977/0.001977, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 63.89 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.3, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001842/0.3019, allocations: 0.6768 MB / 1.242 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001555/0.3035, allocations: 1.198 MB / 1.243 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.799e-05/0.3035, allocations: 0 / 1.243 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.614e-05/0.3036, allocations: 3.938 kB / 1.243 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.087e-05/0.3037, allocations: 19.84 kB / 1.243 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.3043, allocations: 214.2 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.3045, allocations: 195.7 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.224e-05/0.3046, allocations: 12 kB / 1.244 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.3047, allocations: 75.81 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.3049, allocations: 63.83 kB / 1.244 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.3049, allocations: 16 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.06e-05/0.305, allocations: 31.98 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.305, allocations: 11.94 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.355e-05/0.3051, allocations: 55.88 kB / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.3054, allocations: 155.5 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3054, allocations: 0 / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3054, allocations: 0 / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.3054, allocations: 4 kB / 1.244 GB, free: 7.461 MB / 0.9981 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.000557/0.306, allocations: 434.7 kB / 1.245 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.306, allocations: 12.03 kB / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.306, allocations: 34.75 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.21e-05/0.3061, allocations: 16.89 kB / 1.245 GB, free: 6.906 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.3062, allocations: 184.2 kB / 1.245 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.3063, allocations: 8.375 kB / 1.245 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.3063, allocations: 12.12 kB / 1.245 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.3064, allocations: 53.67 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.3064, allocations: 0 / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3064, allocations: 0 / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.3065, allocations: 3.938 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.095e-05/0.3065, allocations: 15.98 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005047/0.307, allocations: 352.8 kB / 1.245 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.3071, allocations: 46.44 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.901e-05/0.3072, allocations: 12.86 kB / 1.245 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.3072, allocations: 3.984 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.3074, allocations: 99.34 kB / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.3074, allocations: 0 / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9): time 0.000285/0.3077, allocations: 125.5 kB / 1.245 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.3077, allocations: 55.41 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3079, allocations: 121.8 kB / 1.246 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.034e-05/0.3079, allocations: 33.7 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.308, allocations: 88.38 kB / 1.246 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.308, allocations: 31.77 kB / 1.246 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.814e-05/0.3081, allocations: 49.69 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3083, allocations: 318.8 kB / 1.246 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3084, allocations: 67.95 kB / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3086, allocations: 110 kB / 1.246 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.3088, allocations: 181.3 kB / 1.246 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3088, allocations: 0 / 1.246 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004764/0.3093, allocations: 284.8 kB / 1.247 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.687e-05/0.3094, allocations: 67.39 kB / 1.247 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3094, allocations: 4 kB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3094, allocations: 0 / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.872e-05/0.3095, allocations: 7.938 kB / 1.247 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.3095, allocations: 8.156 kB / 1.247 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.3098, allocations: 51.94 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/0.3099, allocations: 19.92 kB / 1.247 GB, free: 4.277 MB / 0.9981 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.0001044/0.31, allocations: 122.8 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/0.31, allocations: 7.953 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.158e-05/0.31, allocations: 16.36 kB / 1.247 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.31, allocations: 4 kB / 1.247 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3101, allocations: 7.875 kB / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3101, allocations: 0 / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.3104, allocations: 362.4 kB / 1.247 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3104, allocations: 0 / 1.247 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.077e-05/0.3104, allocations: 3.938 kB / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3104, allocations: 0 / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.3105, allocations: 7.984 kB / 1.247 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3105, allocations: 3.938 kB / 1.247 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3105, allocations: 4 kB / 1.247 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.3107, allocations: 195.4 kB / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.3107, allocations: 85.06 kB / 1.248 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3108, allocations: 3.984 kB / 1.248 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.486e-05/0.3108, allocations: 3.938 kB / 1.248 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.345e-05/0.3109, allocations: 8 kB / 1.248 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.3109, allocations: 7.984 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.202e-05/0.311, allocations: 91.28 kB / 1.248 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.311, allocations: 0 / 1.248 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003011/0.3113, allocations: 35.98 kB / 1.248 GB, free: 3.219 MB / 0.9981 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.0005689/0.3119, allocations: 0.7347 MB / 1.249 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003913/0.3123, allocations: 266.6 kB / 1.249 GB, free: 2.176 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3123, allocations: 0 / 1.249 GB, free: 2.176 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 6.455e-05/0.3123, allocations: 31.98 kB / 1.249 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.3126, allocations: 21.48 kB / 1.249 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.3148, allocations: 1.868 MB / 1.251 GB, free: 136 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5555/0.8703, allocations: 0.6865 MB / 1.251 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.342e-05/0.8704, allocations: 6.5 kB / 1.251 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.8705, allocations: 23.22 kB / 1.251 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of SimCode: time 1.182e-06/0.8705, allocations: 0 / 1.251 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02509/0.8956, allocations: 3.021 MB / 1.254 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.685, allocations: 7.938 kB / 1.254 GB, free: 14.15 MB / 0.9981 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 400 --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