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.005709/0.005709, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00119/0.00119, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.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.503/2.503, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 67.52 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3133, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002276/0.3156, allocations: 0.6717 MB / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001773/0.3174, allocations: 1.204 MB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.49e-05/0.3175, allocations: 0 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.682e-05/0.3176, allocations: 3.938 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.135e-05/0.3177, allocations: 7.875 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008667/0.3185, allocations: 227.3 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.3189, allocations: 187.7 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.319, allocations: 11.98 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3191, allocations: 71.88 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.3193, allocations: 67.78 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.149e-05/0.3194, allocations: 16 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3195, allocations: 35.92 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.978e-05/0.3195, allocations: 15.92 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.3196, allocations: 59.88 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.3199, allocations: 158.4 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3199, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3199, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.3199, allocations: 0 / 1.09 GB, free: 15.23 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.0006483/0.3206, allocations: 435.6 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.3206, allocations: 8.031 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.3207, allocations: 34.75 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.812e-05/0.3208, allocations: 16.84 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3209, allocations: 176.2 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.3209, allocations: 12.38 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.321, allocations: 16.11 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.3211, allocations: 49.62 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3211, allocations: 3.984 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3212, allocations: 4 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3212, allocations: 3.938 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.208e-05/0.3212, allocations: 12 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.3218, allocations: 356.7 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/0.3219, allocations: 42.61 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.344e-05/0.3219, allocations: 20.84 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.926e-06/0.3219, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.3221, allocations: 87.27 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.854e-06/0.3222, allocations: 4 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.00029/0.3225, allocations: 125.8 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.3225, allocations: 59.41 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.3226, allocations: 117.8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.3227, allocations: 33.69 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.709e-05/0.3227, allocations: 92.38 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.3228, allocations: 19.8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/0.3229, allocations: 57.62 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.323, allocations: 322.8 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.3231, allocations: 59.97 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.3233, allocations: 110 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.3235, allocations: 185.3 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3236, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004598/0.324, allocations: 280.7 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.877e-05/0.3241, allocations: 67.39 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3241, allocations: 4.156 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3241, allocations: 8 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.95e-05/0.3242, allocations: 7.984 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3242, allocations: 4 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.3246, allocations: 55.78 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.3246, allocations: 23.86 kB / 1.093 GB, free: 12.05 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.0001261/0.3248, allocations: 127.2 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.3248, allocations: 7.844 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.3248, allocations: 12.38 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3248, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3248, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3248, allocations: 4.078 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003407/0.3252, allocations: 362.4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3252, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.3252, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.3252, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3252, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3253, allocations: 3.938 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3253, allocations: 7.922 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.3254, allocations: 199.6 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.738e-05/0.3255, allocations: 77.11 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3255, allocations: 7.938 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.024e-05/0.3256, allocations: 7.938 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.3257, allocations: 11.98 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3257, allocations: 4 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.954e-05/0.3257, allocations: 91.27 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3257, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002913/0.326, allocations: 32 kB / 1.094 GB, free: 11.01 MB / 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.0004965/0.3265, allocations: 0.7397 MB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003743/0.3269, allocations: 258.6 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3269, allocations: 0 / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.526e-05/0.327, allocations: 28 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.3273, allocations: 21.47 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3295, allocations: 1.875 MB / 1.097 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.3298, allocations: 0.6885 MB / 1.097 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.093e-05/0.3299, allocations: 4.672 kB / 1.097 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.3299, allocations: 27.42 kB / 1.097 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3299, allocations: 0 / 1.097 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.3488, allocations: 3.013 MB / 1.1 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/8.052, allocations: 3.938 kB / 1.1 GB, free: 4.266 MB / 0.8575 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