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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006878/0.006878, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001576/0.001576, allocations: 188.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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.669/2.669, allocations: 461.9 MB / 0.7348 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 67.89 kB / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3144, allocations: 157.4 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002089/0.3165, allocations: 0.686 MB / 1.208 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001828/0.3184, allocations: 1.201 MB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.771e-05/0.3185, allocations: 4 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.285e-05/0.3185, allocations: 3.938 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.724e-05/0.3186, allocations: 7.922 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007299/0.3193, allocations: 226.4 kB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.3196, allocations: 187.7 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3197, allocations: 8 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.3198, allocations: 71.88 kB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.32, allocations: 67.83 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.32, allocations: 12 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-05/0.3201, allocations: 31.98 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.3202, allocations: 15.92 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3203, allocations: 55.89 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.3205, allocations: 159.9 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3205, allocations: 3.938 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3206, allocations: 0 / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.3206, allocations: 0 / 1.21 GB, free: 7.363 MB / 0.9669 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.0006034/0.3212, allocations: 446.6 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3212, allocations: 8.625 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.783e-05/0.3213, allocations: 34.73 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.837e-05/0.3214, allocations: 8.938 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3215, allocations: 168.3 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.3215, allocations: 8.375 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.3216, allocations: 16.12 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3217, allocations: 49.67 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.3218, allocations: 0 / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3218, allocations: 4 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.3218, allocations: 4 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.153e-05/0.3218, allocations: 15.92 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.3224, allocations: 360.6 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.3225, allocations: 38.52 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.056e-05/0.3226, allocations: 20.94 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.3226, allocations: 4 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.3228, allocations: 91.73 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.3229, allocations: 0 / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0002949/0.3232, allocations: 133.5 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.3232, allocations: 55.41 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.3233, allocations: 117.8 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.3234, allocations: 29.7 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/0.3234, allocations: 108.2 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.3235, allocations: 11.81 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.3236, allocations: 53.69 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3237, allocations: 326.8 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3239, allocations: 59.97 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.324, allocations: 109.9 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.3243, allocations: 185.3 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3243, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004439/0.3247, allocations: 280.8 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.584e-05/0.3248, allocations: 75.33 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3248, allocations: 0 / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3248, allocations: 4 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.655e-05/0.3249, allocations: 4 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3249, allocations: 3.984 kB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.3252, allocations: 60.03 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-05/0.3253, allocations: 15.94 kB / 1.213 GB, free: 4.184 MB / 0.9669 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.0001101/0.3254, allocations: 125.8 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.3254, allocations: 7.906 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.3255, allocations: 12.38 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3255, allocations: 0 / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3255, allocations: 3.938 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3255, allocations: 0 / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.3258, allocations: 366.8 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3258, allocations: 0 / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.237e-06/0.3259, allocations: 96 / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3259, allocations: 7.938 kB / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.3259, allocations: 0 / 1.213 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.3259, allocations: 3.938 kB / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3259, allocations: 0 / 1.213 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.3261, allocations: 207.4 kB / 1.213 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.3262, allocations: 81.02 kB / 1.213 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.3262, allocations: 8 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.367e-05/0.3263, allocations: 7.938 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.3263, allocations: 7.984 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.3263, allocations: 0 / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.688e-05/0.3264, allocations: 99.27 kB / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3264, allocations: 0 / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003018/0.3267, allocations: 28 kB / 1.214 GB, free: 3.133 MB / 0.9669 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.0005506/0.3273, allocations: 0.7421 MB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003985/0.3277, allocations: 254.7 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3277, allocations: 0 / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.167e-05/0.3277, allocations: 35.92 kB / 1.215 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.3281, allocations: 28.55 kB / 1.215 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.3304, allocations: 1.865 MB / 1.216 GB, free: 40 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.3308, allocations: 0.6846 MB / 1.217 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.166e-05/0.3308, allocations: 8.656 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/0.3309, allocations: 23.44 kB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.3309, allocations: 0 / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.3519, allocations: 3.084 MB / 1.22 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/8.031, allocations: 5.688 kB / 1.22 GB, free: 12.34 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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