Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.001322/0.001322, 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.001468/0.001468, allocations: 218.8 kB / 22.26 MB, free: 5.121 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.606/1.606, allocations: 230.6 MB / 256 MB, free: 7.961 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.414/3.414, allocations: 0.505 GB / 0.8101 GB, free: 22.03 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.And,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.And,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And",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.002134/0.002134, allocations: 75.27 kB / 1.177 GB, free: 17.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4134, allocations: 180.2 MB / 1.353 GB, free: 8.434 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002207/0.4156, allocations: 0.6606 MB / 1.354 GB, free: 7.773 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001875/0.4175, allocations: 1.218 MB / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.621e-05/0.4175, allocations: 0 / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.114e-05/0.4176, allocations: 3.938 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.4177, allocations: 19.86 kB / 1.355 GB, free: 6.52 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008082/0.4185, allocations: 215.2 kB / 1.355 GB, free: 6.316 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000313/0.4188, allocations: 171.7 kB / 1.355 GB, free: 6.148 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.4189, allocations: 19.97 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.419, allocations: 63.91 kB / 1.355 GB, free: 6.066 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.4192, allocations: 59.84 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.4192, allocations: 16 kB / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.372e-05/0.4193, allocations: 35.92 kB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.4194, allocations: 15.92 kB / 1.355 GB, free: 5.941 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.874e-05/0.4195, allocations: 55.89 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002736/0.4197, allocations: 151.8 kB / 1.355 GB, free: 5.738 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4197, allocations: 0 / 1.355 GB, free: 5.738 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4197, allocations: 0 / 1.355 GB, free: 5.738 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.4197, allocations: 0 / 1.355 GB, free: 5.738 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.000629/0.4204, allocations: 365.5 kB / 1.356 GB, free: 5.336 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4204, allocations: 11.97 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.282e-05/0.4205, allocations: 30.75 kB / 1.356 GB, free: 5.285 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.4205, allocations: 16.89 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.4207, allocations: 114.5 kB / 1.356 GB, free: 5.133 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.4207, allocations: 8.359 kB / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.4207, allocations: 8.375 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.4209, allocations: 50.19 kB / 1.356 GB, free: 5.062 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.4209, allocations: 3.938 kB / 1.356 GB, free: 5.059 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.4209, allocations: 4 kB / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.4209, allocations: 0 / 1.356 GB, free: 5.055 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.347e-05/0.4209, allocations: 15.98 kB / 1.356 GB, free: 5.039 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005471/0.4215, allocations: 331.7 kB / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.4216, allocations: 34.52 kB / 1.356 GB, free: 4.629 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.178e-05/0.4216, allocations: 12.94 kB / 1.356 GB, free: 4.613 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.4216, allocations: 0 / 1.356 GB, free: 4.613 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.4218, allocations: 79.38 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.4219, allocations: 0 / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0002795/0.4221, allocations: 117.5 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.4222, allocations: 51.41 kB / 1.357 GB, free: 4.34 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.4223, allocations: 121.8 kB / 1.357 GB, free: 4.211 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.4223, allocations: 29.7 kB / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.4224, allocations: 92.09 kB / 1.357 GB, free: 4.082 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.4224, allocations: 7.953 kB / 1.357 GB, free: 4.074 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.4225, allocations: 53.62 kB / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.4227, allocations: 322.8 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.4228, allocations: 59.97 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.423, allocations: 96.62 kB / 1.357 GB, free: 3.523 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.4232, allocations: 163.6 kB / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4232, allocations: 0 / 1.358 GB, free: 3.336 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004437/0.4236, allocations: 264.8 kB / 1.358 GB, free: 3.059 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.4237, allocations: 72.95 kB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.4237, allocations: 0 / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4237, allocations: 0 / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.586e-05/0.4237, allocations: 7.984 kB / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.4237, allocations: 0 / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.4241, allocations: 56.02 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.4241, allocations: 16 kB / 1.358 GB, free: 2.898 MB / 1.045 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,and1.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.0001332/0.4242, allocations: 137.6 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.4243, allocations: 3.953 kB / 1.358 GB, free: 2.75 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.4243, allocations: 8.375 kB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.4243, allocations: 0 / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4243, allocations: 4 kB / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4243, allocations: 0 / 1.358 GB, free: 2.738 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.4245, allocations: 156.6 kB / 1.358 GB, free: 2.543 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4245, allocations: 0 / 1.358 GB, free: 2.543 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.223e-05/0.4245, allocations: 4 kB / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.4245, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.4245, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.4245, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4245, allocations: 0 / 1.358 GB, free: 2.539 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.4247, allocations: 113.4 kB / 1.358 GB, free: 2.41 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.476e-05/0.4247, allocations: 7.953 kB / 1.358 GB, free: 2.402 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.4247, allocations: 3.984 kB / 1.358 GB, free: 2.398 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.918e-05/0.4247, allocations: 0 / 1.358 GB, free: 2.398 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.4248, allocations: 15.92 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.4248, allocations: 8.047 kB / 1.358 GB, free: 2.375 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.659e-05/0.4248, allocations: 91.22 kB / 1.359 GB, free: 2.285 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4248, allocations: 0 / 1.359 GB, free: 2.285 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002617/0.4251, allocations: 28 kB / 1.359 GB, free: 2.258 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.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.0005497/0.4256, allocations: 0.667 MB / 1.359 GB, free: 1.562 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000366/0.426, allocations: 214.7 kB / 1.359 GB, free: 1.328 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.426, allocations: 0 / 1.359 GB, free: 1.328 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.088e-05/0.4261, allocations: 27.92 kB / 1.359 GB, free: 1.301 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.4263, allocations: 20.23 kB / 1.359 GB, free: 1.281 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.4285, allocations: 1.72 MB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.4288, allocations: 0.6846 MB / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.768e-05/0.4289, allocations: 7.984 kB / 1.362 GB, free: 14.72 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.4289, allocations: 19.44 kB / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.4289, allocations: 0 / 1.362 GB, free: 14.7 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.4619, allocations: 3.016 MB / 1.365 GB, free: 11.84 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.47, allocations: 9.891 kB / 1.365 GB, free: 11.83 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_And.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.703276854008436]