Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.001393/0.001393, allocations: 99.64 kB / 18.95 MB, free: 2.539 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.001939/0.001939, allocations: 210.8 kB / 22.24 MB, free: 4.875 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.805 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.412/3.412, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.003023/0.003023, allocations: 64.38 kB / 1.186 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3837, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002135/0.3858, allocations: 0.6764 MB / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3878, allocations: 1.284 MB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.246e-05/0.3878, allocations: 0 / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.199e-05/0.3879, allocations: 3.938 kB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.388, allocations: 23.84 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000975/0.389, allocations: 313.2 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004155/0.3894, allocations: 263.5 kB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.3895, allocations: 12.17 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.3897, allocations: 99.86 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.3899, allocations: 79.75 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.587e-05/0.39, allocations: 24 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.3901, allocations: 35.98 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.3901, allocations: 15.97 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3903, allocations: 79.81 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.3906, allocations: 227.6 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3906, allocations: 0 / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3906, allocations: 0 / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3906, allocations: 0 / 1.366 GB, free: 10.95 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007239/0.3913, allocations: 419.1 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3914, allocations: 8.031 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.976e-05/0.3914, allocations: 34.75 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3915, allocations: 16.88 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.3916, allocations: 121.1 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.3916, allocations: 8.375 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.3917, allocations: 20.38 kB / 1.367 GB, free: 10.26 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.3918, allocations: 61.97 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.3918, allocations: 0 / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.3918, allocations: 7.922 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3918, allocations: 0 / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.021e-05/0.3919, allocations: 20 kB / 1.367 GB, free: 10.17 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.3925, allocations: 347.7 kB / 1.367 GB, free: 9.785 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8.213e-05/0.3925, allocations: 30.56 kB / 1.367 GB, free: 9.746 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.272e-05/0.3926, allocations: 25.92 kB / 1.368 GB, free: 9.719 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.3926, allocations: 4 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.3928, allocations: 103.3 kB / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3928, allocations: 0 / 1.368 GB, free: 9.602 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0003372/0.3932, allocations: 141.5 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.3932, allocations: 59.39 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.3934, allocations: 129.8 kB / 1.368 GB, free: 9.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.3934, allocations: 37.7 kB / 1.368 GB, free: 9.207 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/0.3935, allocations: 96.14 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.3935, allocations: 19.91 kB / 1.368 GB, free: 9.09 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.3937, allocations: 69.67 kB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3938, allocations: 326.7 kB / 1.368 GB, free: 8.688 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.3941, allocations: 185 kB / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.3944, allocations: 223.1 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.3947, allocations: 237.5 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3947, allocations: 0 / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000734/0.3954, allocations: 475.5 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.948e-05/0.3955, allocations: 97.08 kB / 1.37 GB, free: 7.34 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3955, allocations: 4 kB / 1.37 GB, free: 7.336 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3955, allocations: 0 / 1.37 GB, free: 7.336 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.418e-05/0.3956, allocations: 4 kB / 1.37 GB, free: 7.332 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.383e-06/0.3956, allocations: 4 kB / 1.37 GB, free: 7.328 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/0.3961, allocations: 87.92 kB / 1.37 GB, free: 7.242 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3961, allocations: 19.98 kB / 1.37 GB, free: 7.223 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001452/0.3962, allocations: 139.7 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.3963, allocations: 7.953 kB / 1.37 GB, free: 7.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/0.3963, allocations: 8.375 kB / 1.37 GB, free: 7.055 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3963, allocations: 4 kB / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3963, allocations: 0 / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3963, allocations: 4 kB / 1.37 GB, free: 7.047 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.3965, allocations: 156.7 kB / 1.37 GB, free: 6.852 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3965, allocations: 0 / 1.37 GB, free: 6.852 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.784e-05/0.3965, allocations: 7.984 kB / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3965, allocations: 0 / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.3965, allocations: 0 / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3965, allocations: 0 / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3965, allocations: 3.938 kB / 1.37 GB, free: 6.84 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.3967, allocations: 157.2 kB / 1.37 GB, free: 6.668 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.858e-05/0.3967, allocations: 11.89 kB / 1.37 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.3968, allocations: 7.938 kB / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.401e-05/0.3968, allocations: 4 kB / 1.37 GB, free: 6.645 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.3968, allocations: 7.984 kB / 1.37 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3968, allocations: 12 kB / 1.37 GB, free: 6.625 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.056e-05/0.3969, allocations: 101.8 kB / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3969, allocations: 0 / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002719/0.3972, allocations: 44 kB / 1.37 GB, free: 6.484 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005584/0.3977, allocations: 0.6768 MB / 1.371 GB, free: 5.781 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005502/0.3983, allocations: 419.3 kB / 1.371 GB, free: 5.316 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3983, allocations: 4.125 kB / 1.371 GB, free: 5.312 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.663e-05/0.3984, allocations: 31.98 kB / 1.371 GB, free: 5.281 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3987, allocations: 20.36 kB / 1.371 GB, free: 5.262 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.4016, allocations: 2.432 MB / 1.374 GB, free: 2.613 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.449e-05/0.4017, allocations: 79.89 kB / 1.374 GB, free: 2.512 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.336e-05/0.4017, allocations: 8.422 kB / 1.374 GB, free: 2.504 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.766e-05/0.4018, allocations: 31.42 kB / 1.374 GB, free: 2.473 MB / 1.061 GB Notification: Performance of SimCode: time 3.91e-07/0.4018, allocations: 3.938 kB / 1.374 GB, free: 2.469 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03447/0.4362, allocations: 4.694 MB / 1.379 GB, free: 13.96 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.62, allocations: 4.812 kB / 1.379 GB, free: 13.96 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.63848437415436]