Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_10_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.006547/0.006547, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001103/0.001103, allocations: 195.8 kB / 16.67 MB, free: 5.965 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.634/2.634, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3118, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002247/0.3141, allocations: 0.6834 MB / 1.167 GB, free: 6.629 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.3161, allocations: 1.203 MB / 1.168 GB, free: 5.41 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.093e-05/0.3162, allocations: 0 / 1.168 GB, free: 5.41 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.525e-05/0.3162, allocations: 3.938 kB / 1.168 GB, free: 5.406 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.3164, allocations: 19.86 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009514/0.3173, allocations: 226.8 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.3177, allocations: 187.8 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3178, allocations: 12 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.3179, allocations: 75.81 kB / 1.169 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.3181, allocations: 67.77 kB / 1.169 GB, free: 4.836 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.3181, allocations: 16 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.881e-05/0.3182, allocations: 31.98 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.3183, allocations: 8 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.222e-05/0.3184, allocations: 63.81 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.3187, allocations: 147.9 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3187, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of FrontEnd: time 5.27e-06/0.3187, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.101e-05/0.3187, allocations: 3.938 kB / 1.169 GB, free: 4.57 MB / 0.92 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.0006021/0.3193, allocations: 446.6 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.3194, allocations: 12.03 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.255e-05/0.3194, allocations: 30.75 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.709e-05/0.3195, allocations: 16.89 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.3197, allocations: 180.3 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.3197, allocations: 8.312 kB / 1.17 GB, free: 3.785 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.3197, allocations: 16.12 kB / 1.17 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001408/0.3199, allocations: 49.67 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3199, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.3199, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.3199, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.664e-05/0.32, allocations: 15.98 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006937/0.3207, allocations: 364.7 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.3208, allocations: 34.5 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.054e-05/0.3208, allocations: 16.86 kB / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.3209, allocations: 0 / 1.17 GB, free: 3.23 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.321, allocations: 99.39 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 3.266e-06/0.3211, allocations: 0 / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0003148/0.3214, allocations: 129.5 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.3214, allocations: 55.34 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.3216, allocations: 121.8 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.3216, allocations: 33.7 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.981e-05/0.3217, allocations: 88.38 kB / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.3217, allocations: 27.83 kB / 1.171 GB, free: 2.637 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.3219, allocations: 49.69 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.322, allocations: 322.8 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.3223, allocations: 71.91 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3224, allocations: 106 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.3226, allocations: 181.3 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3226, allocations: 0 / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004428/0.3231, allocations: 284.8 kB / 1.171 GB, free: 1.555 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.554e-05/0.3232, allocations: 69.42 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3232, allocations: 4 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3232, allocations: 160 / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.905e-05/0.3233, allocations: 12 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3233, allocations: 7.938 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.3236, allocations: 51.88 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.3237, allocations: 19.92 kB / 1.172 GB, free: 1.383 MB / 0.92 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.0001185/0.3238, allocations: 124.5 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.3238, allocations: 11.95 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.3238, allocations: 12.36 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.3238, allocations: 0 / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3239, allocations: 4 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3239, allocations: 4.078 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003343/0.3242, allocations: 350.5 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3242, allocations: 4 kB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.3242, allocations: 7.922 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3242, allocations: 480 / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.3243, allocations: 8 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3243, allocations: 3.938 kB / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3243, allocations: 0 / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002033/0.3245, allocations: 199.4 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.3245, allocations: 85.06 kB / 1.172 GB, free: 496 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.3246, allocations: 3.984 kB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.287e-05/0.3246, allocations: 3.938 kB / 1.172 GB, free: 488 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.3247, allocations: 11.98 kB / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3247, allocations: 8 kB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of sorting global known variables: time 5.901e-05/0.3247, allocations: 95.2 kB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3247, allocations: 0 / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002779/0.325, allocations: 32 kB / 1.173 GB, free: 340 kB / 0.92 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.0005489/0.3256, allocations: 0.7358 MB / 1.173 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000375/0.326, allocations: 262.6 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.326, allocations: 0 / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.735e-05/0.3261, allocations: 31.98 kB / 1.174 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.3264, allocations: 24.23 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.3285, allocations: 1.866 MB / 1.175 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.3288, allocations: 0.6891 MB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.478e-05/0.3289, allocations: 4.672 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.719e-05/0.3289, allocations: 23.42 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of SimCode: time 2.355e-06/0.3289, allocations: 0 / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.3485, allocations: 3.002 MB / 1.179 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/8.167, allocations: 25.53 kB / 1.179 GB, free: 9.582 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches