Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.001321/0.001321, allocations: 103.6 kB / 18.94 MB, free: 2.688 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.001531/0.001531, allocations: 213.5 kB / 22.24 MB, free: 5.25 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.793 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.342/3.342, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.002105/0.002105, allocations: 71.5 kB / 1.186 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4015, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.00227/0.4038, allocations: 0.6473 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001962/0.4057, allocations: 1.21 MB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.72e-05/0.4058, allocations: 0 / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.618e-05/0.4058, allocations: 7.938 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.656e-05/0.4059, allocations: 11.86 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007203/0.4066, allocations: 220.4 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.4069, allocations: 171.8 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.375e-05/0.407, allocations: 8 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.4071, allocations: 67.89 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.4073, allocations: 67.78 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.4073, allocations: 12 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.573e-05/0.4074, allocations: 35.92 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.117e-05/0.4074, allocations: 11.92 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.049e-05/0.4075, allocations: 51.89 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.4078, allocations: 151.9 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4078, allocations: 0 / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.444e-06/0.4078, allocations: 3.938 kB / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.4078, allocations: 0 / 1.366 GB, free: 11.42 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.0006794/0.4085, allocations: 361.5 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001213/0.4086, allocations: 8.031 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.351e-05/0.4086, allocations: 38.75 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.683e-05/0.4087, allocations: 8.891 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.4088, allocations: 110.5 kB / 1.366 GB, free: 10.83 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.4089, allocations: 8.359 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.4089, allocations: 12.38 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.4091, allocations: 50.19 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.4091, allocations: 3.938 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.4091, allocations: 3.984 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.577e-06/0.4091, allocations: 4 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.026e-05/0.4091, allocations: 12 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005961/0.4097, allocations: 303.8 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.4098, allocations: 42.48 kB / 1.367 GB, free: 10.34 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.04e-05/0.4099, allocations: 12.86 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.4099, allocations: 4 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.4101, allocations: 83.44 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.4101, allocations: 0 / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0002731/0.4104, allocations: 105.6 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.4104, allocations: 51.41 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.4106, allocations: 125.8 kB / 1.367 GB, free: 9.922 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.4106, allocations: 33.7 kB / 1.367 GB, free: 9.883 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.309e-05/0.4107, allocations: 97.16 kB / 1.367 GB, free: 9.785 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.4107, allocations: 15.89 kB / 1.367 GB, free: 9.77 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.71e-05/0.4108, allocations: 45.69 kB / 1.367 GB, free: 9.719 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.411, allocations: 326.8 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.4112, allocations: 127.4 kB / 1.368 GB, free: 9.254 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.4114, allocations: 151.7 kB / 1.368 GB, free: 9.078 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.4116, allocations: 159.6 kB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4116, allocations: 4 kB / 1.368 GB, free: 8.891 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005313/0.4121, allocations: 332.2 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.331e-05/0.4122, allocations: 67.39 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.4122, allocations: 0 / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4122, allocations: 0 / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.925e-05/0.4123, allocations: 4 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4123, allocations: 0 / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.4126, allocations: 56.06 kB / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.4126, allocations: 15.98 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,xor1.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 (9): * Single equations (assignments): 7 * 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.000128/0.4128, allocations: 125.7 kB / 1.369 GB, free: 8.25 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.4128, allocations: 15.88 kB / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.49e-05/0.4128, allocations: 8.844 kB / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4128, allocations: 0 / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4128, allocations: 0 / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.4128, allocations: 0 / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.413, allocations: 144.7 kB / 1.369 GB, free: 8.035 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.413, allocations: 11.94 kB / 1.369 GB, free: 8.023 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.989e-06/0.413, allocations: 4 kB / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.413, allocations: 0 / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.413, allocations: 0 / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.413, allocations: 4 kB / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.413, allocations: 0 / 1.369 GB, free: 8.016 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.4133, allocations: 117 kB / 1.369 GB, free: 7.883 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.152e-05/0.4133, allocations: 4 kB / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.4133, allocations: 0 / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.047e-05/0.4133, allocations: 0 / 1.369 GB, free: 7.879 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/0.4134, allocations: 15.92 kB / 1.369 GB, free: 7.863 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.557e-06/0.4134, allocations: 8 kB / 1.369 GB, free: 7.855 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.09e-05/0.4134, allocations: 91.27 kB / 1.369 GB, free: 7.766 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4134, allocations: 0 / 1.369 GB, free: 7.766 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002482/0.4137, allocations: 27.95 kB / 1.369 GB, free: 7.738 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005467/0.4142, allocations: 0.6476 MB / 1.37 GB, free: 7.062 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004138/0.4146, allocations: 282.5 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4146, allocations: 0 / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.3e-05/0.4147, allocations: 28.17 kB / 1.37 GB, free: 6.723 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.4149, allocations: 32.25 kB / 1.37 GB, free: 6.691 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.4175, allocations: 1.972 MB / 1.372 GB, free: 4.555 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.628e-05/0.4176, allocations: 75.27 kB / 1.372 GB, free: 4.461 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.647e-05/0.4176, allocations: 7.859 kB / 1.372 GB, free: 4.453 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.4177, allocations: 23.42 kB / 1.372 GB, free: 4.43 MB / 1.061 GB Notification: Performance of SimCode: time 5.51e-07/0.4177, allocations: 0 / 1.372 GB, free: 4.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.4508, allocations: 3.644 MB / 1.376 GB, free: 0.9531 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.01, allocations: 7.469 kB / 1.376 GB, free: 0.9492 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.89235139871016]