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.001695/0.001695, allocations: 103.6 kB / 18.95 MB, free: 2.664 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.002362/0.002362, allocations: 213.1 kB / 22.24 MB, free: 5.266 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 7.785 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.353/3.353, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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.002155/0.002155, allocations: 70.56 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3678, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001969/0.3698, allocations: 0.6612 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3715, allocations: 1.222 MB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.622e-05/0.3715, allocations: 0 / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.116e-05/0.3716, allocations: 3.938 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.693e-05/0.3716, allocations: 15.92 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007145/0.3724, allocations: 216.7 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.3727, allocations: 187.6 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.831e-05/0.3727, allocations: 4 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.3729, allocations: 71.89 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.373, allocations: 55.84 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.3731, allocations: 16 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.29e-05/0.3731, allocations: 27.98 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.836e-05/0.3732, allocations: 15.92 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.646e-05/0.3733, allocations: 51.89 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.3735, allocations: 159.8 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.3735, allocations: 7.984 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3735, allocations: 0 / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.3735, allocations: 4 kB / 1.366 GB, free: 11.4 MB / 1.061 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.0005693/0.3741, allocations: 361.5 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.3741, allocations: 8.031 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.3742, allocations: 38.75 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.3742, allocations: 12.89 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.3744, allocations: 114.4 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3744, allocations: 8.375 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.3744, allocations: 16.11 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3745, allocations: 45.69 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.3745, allocations: 3.938 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3746, allocations: 7.984 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.3746, allocations: 0 / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.985e-05/0.3746, allocations: 12 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005506/0.3751, allocations: 303.8 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.162e-05/0.3752, allocations: 30.58 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/0.3753, allocations: 21.94 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.3753, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.3755, allocations: 95.3 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3755, allocations: 0 / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0003062/0.3758, allocations: 133.5 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.3759, allocations: 55.41 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.376, allocations: 117.8 kB / 1.367 GB, free: 9.871 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.376, allocations: 33.69 kB / 1.367 GB, free: 9.832 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.3761, allocations: 96.27 kB / 1.367 GB, free: 9.73 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.3761, allocations: 15.91 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3762, allocations: 53.69 kB / 1.368 GB, free: 9.656 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3764, allocations: 326.8 kB / 1.368 GB, free: 9.328 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.3766, allocations: 127.3 kB / 1.368 GB, free: 9.191 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.3768, allocations: 161.4 kB / 1.368 GB, free: 9 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.377, allocations: 185.3 kB / 1.368 GB, free: 8.785 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.377, allocations: 4 kB / 1.368 GB, free: 8.781 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005495/0.3776, allocations: 356.2 kB / 1.369 GB, free: 8.402 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.3777, allocations: 69.73 kB / 1.369 GB, free: 8.324 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3777, allocations: 0 / 1.369 GB, free: 8.324 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3777, allocations: 8.156 kB / 1.369 GB, free: 8.316 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.968e-05/0.3777, allocations: 4 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3777, allocations: 4 kB / 1.369 GB, free: 8.309 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.3781, allocations: 55.86 kB / 1.369 GB, free: 8.254 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.3781, allocations: 15.94 kB / 1.369 GB, free: 8.238 MB / 1.061 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.0001269/0.3782, allocations: 129.8 kB / 1.369 GB, free: 8.102 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.3782, allocations: 16.03 kB / 1.369 GB, free: 8.086 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.3783, allocations: 8.75 kB / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3783, allocations: 0 / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3783, allocations: 0 / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3783, allocations: 0 / 1.369 GB, free: 8.07 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004287/0.3787, allocations: 329.5 kB / 1.369 GB, free: 7.699 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3787, allocations: 0 / 1.369 GB, free: 7.699 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.3787, allocations: 3.984 kB / 1.369 GB, free: 7.695 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3787, allocations: 0 / 1.369 GB, free: 7.695 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3787, allocations: 4 kB / 1.369 GB, free: 7.691 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3787, allocations: 3.938 kB / 1.369 GB, free: 7.688 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3787, allocations: 4 kB / 1.369 GB, free: 7.684 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/0.379, allocations: 195.4 kB / 1.369 GB, free: 7.477 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.389e-05/0.379, allocations: 11.94 kB / 1.369 GB, free: 7.465 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.379, allocations: 4 kB / 1.369 GB, free: 7.461 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.855e-05/0.379, allocations: 11.88 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.048e-05/0.3791, allocations: 7.922 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.3791, allocations: 4 kB / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.939e-05/0.3792, allocations: 91.27 kB / 1.37 GB, free: 7.348 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3792, allocations: 4 kB / 1.37 GB, free: 7.344 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002898/0.3794, allocations: 32 kB / 1.37 GB, free: 7.312 MB / 1.061 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.0006001/0.38, allocations: 0.7424 MB / 1.37 GB, free: 6.547 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004426/0.3805, allocations: 290.4 kB / 1.371 GB, free: 6.227 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3805, allocations: 3.938 kB / 1.371 GB, free: 6.223 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.367e-05/0.3806, allocations: 27.92 kB / 1.371 GB, free: 6.195 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.3809, allocations: 23.91 kB / 1.371 GB, free: 6.172 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.3835, allocations: 2.12 MB / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.589e-05/0.3835, allocations: 75.33 kB / 1.373 GB, free: 3.785 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.454e-05/0.3836, allocations: 4.672 kB / 1.373 GB, free: 3.781 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/0.3836, allocations: 19.44 kB / 1.373 GB, free: 3.762 MB / 1.061 GB Notification: Performance of SimCode: time 9.42e-07/0.3836, allocations: 0 / 1.373 GB, free: 3.762 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.4149, allocations: 3.757 MB / 1.377 GB, free: 172 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.91, allocations: 17.05 kB / 1.377 GB, free: 164 kB / 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.903900682926178]