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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 220.5 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.454/3.454, allocations: 0.505 GB / 0.8101 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 63.41 kB / 1.177 GB, free: 17.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.363, allocations: 180.2 MB / 1.353 GB, free: 8.473 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002305/0.3653, allocations: 0.6806 MB / 1.354 GB, free: 7.793 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3673, allocations: 1.237 MB / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.918e-05/0.3673, allocations: 0 / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.3674, allocations: 7.938 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.3675, allocations: 11.86 kB / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000827/0.3683, allocations: 226 kB / 1.355 GB, free: 6.309 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.3686, allocations: 179.6 kB / 1.355 GB, free: 6.133 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3687, allocations: 11.98 kB / 1.355 GB, free: 6.121 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.3689, allocations: 67.89 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.369, allocations: 71.84 kB / 1.355 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.3691, allocations: 16 kB / 1.355 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.126e-05/0.3692, allocations: 27.98 kB / 1.355 GB, free: 5.941 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.977e-05/0.3692, allocations: 11.94 kB / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.447e-05/0.3693, allocations: 63.81 kB / 1.355 GB, free: 5.867 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.3696, allocations: 155.9 kB / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3696, allocations: 0 / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3696, allocations: 0 / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.3696, allocations: 0 / 1.356 GB, free: 5.715 MB / 1.045 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.0005998/0.3702, allocations: 365.5 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3702, allocations: 12.03 kB / 1.356 GB, free: 5.305 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.3702, allocations: 38.75 kB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.967e-05/0.3703, allocations: 12.89 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.3704, allocations: 110.5 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.3704, allocations: 4.375 kB / 1.356 GB, free: 5.109 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.3705, allocations: 20.11 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.3706, allocations: 53.61 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3706, allocations: 0 / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3706, allocations: 3.984 kB / 1.356 GB, free: 5.027 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3707, allocations: 0 / 1.356 GB, free: 5.027 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.309e-05/0.3707, allocations: 19.94 kB / 1.356 GB, free: 5.008 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006137/0.3713, allocations: 339.6 kB / 1.356 GB, free: 4.633 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 9.003e-05/0.3714, allocations: 26.58 kB / 1.357 GB, free: 4.598 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.23e-05/0.3714, allocations: 16.94 kB / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.3714, allocations: 4 kB / 1.357 GB, free: 4.574 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/0.3717, allocations: 95.25 kB / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3717, allocations: 0 / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of matching and sorting (n=9): time 0.0003039/0.372, allocations: 125.6 kB / 1.357 GB, free: 4.34 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.372, allocations: 55.39 kB / 1.357 GB, free: 4.273 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.3722, allocations: 121.8 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3722, allocations: 33.7 kB / 1.357 GB, free: 4.105 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.236e-05/0.3723, allocations: 92.36 kB / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.3723, allocations: 15.86 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3724, allocations: 57.69 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3725, allocations: 326.8 kB / 1.357 GB, free: 3.602 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.3727, allocations: 59.97 kB / 1.357 GB, free: 3.543 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.3728, allocations: 103.8 kB / 1.358 GB, free: 3.422 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.3731, allocations: 193.3 kB / 1.358 GB, free: 3.199 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3731, allocations: 0 / 1.358 GB, free: 3.199 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004659/0.3735, allocations: 281 kB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.3736, allocations: 71.42 kB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3736, allocations: 4 kB / 1.358 GB, free: 2.82 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3736, allocations: 0 / 1.358 GB, free: 2.82 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.817e-05/0.3737, allocations: 7.938 kB / 1.358 GB, free: 2.812 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3737, allocations: 7.984 kB / 1.358 GB, free: 2.805 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.374, allocations: 59.81 kB / 1.358 GB, free: 2.746 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.3741, allocations: 15.94 kB / 1.358 GB, free: 2.73 MB / 1.045 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.0001252/0.3742, allocations: 133.8 kB / 1.358 GB, free: 2.59 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.3742, allocations: 8.328 kB / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.3742, allocations: 8.375 kB / 1.358 GB, free: 2.574 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3742, allocations: 3.938 kB / 1.358 GB, free: 2.57 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3742, allocations: 4 kB / 1.358 GB, free: 2.566 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3742, allocations: 3.938 kB / 1.358 GB, free: 2.562 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.3746, allocations: 333.5 kB / 1.359 GB, free: 2.188 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3746, allocations: 4 kB / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.3746, allocations: 0 / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3746, allocations: 0 / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3746, allocations: 4 kB / 1.359 GB, free: 2.18 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3746, allocations: 3.938 kB / 1.359 GB, free: 2.176 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3746, allocations: 4 kB / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.3748, allocations: 199.4 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.217e-05/0.3748, allocations: 7.953 kB / 1.359 GB, free: 1.953 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.3749, allocations: 4 kB / 1.359 GB, free: 1.949 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.382e-05/0.3749, allocations: 3.938 kB / 1.359 GB, free: 1.945 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.375, allocations: 11.98 kB / 1.359 GB, free: 1.934 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.375, allocations: 4 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.39e-05/0.375, allocations: 91.27 kB / 1.359 GB, free: 1.84 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.375, allocations: 0 / 1.359 GB, free: 1.84 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000288/0.3753, allocations: 32 kB / 1.359 GB, free: 1.809 MB / 1.045 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.0005842/0.3759, allocations: 0.7358 MB / 1.36 GB, free: 1.047 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3763, allocations: 238.8 kB / 1.36 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3763, allocations: 0 / 1.36 GB, free: 0.7891 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.561e-05/0.3764, allocations: 27.94 kB / 1.36 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.3767, allocations: 24.23 kB / 1.36 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.3792, allocations: 1.878 MB / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.3795, allocations: 0.6896 MB / 1.363 GB, free: 14.02 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.688e-05/0.3796, allocations: 4.953 kB / 1.363 GB, free: 14.02 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.3796, allocations: 19.44 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3796, allocations: 0 / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.4114, allocations: 3.171 MB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.5, allocations: 2.938 kB / 1.366 GB, free: 10.98 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0008 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.66036628303118]