Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 109.9 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.632/1.632, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.753/2.753, allocations: 476.7 MB / 0.7611 GB, free: 11.27 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 1.104 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.947/0.949, allocations: 168.7 MB / 1.269 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002277/0.9513, allocations: 0.716 MB / 1.269 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.9532, allocations: 1.264 MB / 1.271 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.195e-05/0.9533, allocations: 4 kB / 1.271 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.414e-05/0.9533, allocations: 3.938 kB / 1.271 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.9534, allocations: 23.84 kB / 1.271 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009495/0.9543, allocations: 306.3 kB / 1.271 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.9548, allocations: 267.5 kB / 1.271 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.9549, allocations: 12.17 kB / 1.271 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.9551, allocations: 95.88 kB / 1.271 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.9553, allocations: 91.73 kB / 1.271 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.9553, allocations: 20 kB / 1.271 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.9554, allocations: 43.97 kB / 1.272 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.9555, allocations: 15.92 kB / 1.272 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.9556, allocations: 83.8 kB / 1.272 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.9559, allocations: 213.2 kB / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9559, allocations: 0 / 1.272 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9559, allocations: 7.938 kB / 1.272 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.9559, allocations: 0 / 1.272 GB, free: 1.965 MB / 0.9669 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.000768/0.9567, allocations: 0.4923 MB / 1.272 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.9567, allocations: 8.031 kB / 1.272 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.9568, allocations: 38.73 kB / 1.272 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.045e-05/0.9569, allocations: 16.89 kB / 1.272 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.9571, allocations: 172.3 kB / 1.273 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.9571, allocations: 8.375 kB / 1.273 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.9572, allocations: 24.3 kB / 1.273 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.9573, allocations: 65.97 kB / 1.273 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.9574, allocations: 0 / 1.273 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.9574, allocations: 4 kB / 1.273 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.9574, allocations: 0 / 1.273 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.305e-05/0.9574, allocations: 23.92 kB / 1.273 GB, free: 1 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.9581, allocations: 408.5 kB / 1.273 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 7.823e-05/0.9582, allocations: 30.56 kB / 1.273 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.073e-05/0.9582, allocations: 18.41 kB / 1.273 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.9582, allocations: 4 kB / 1.273 GB, free: 500 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002723/0.9585, allocations: 99.38 kB / 1.273 GB, free: 388 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/0.9585, allocations: 0 / 1.273 GB, free: 388 kB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0003824/0.9589, allocations: 137.5 kB / 1.273 GB, free: 244 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.959, allocations: 55.41 kB / 1.273 GB, free: 176 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.9591, allocations: 145.7 kB / 1.274 GB, free: 20 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.979e-05/0.9592, allocations: 37.7 kB / 1.274 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.9593, allocations: 96.2 kB / 1.274 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.9594, allocations: 19.86 kB / 1.274 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.9595, allocations: 69.66 kB / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.9597, allocations: 322.8 kB / 1.274 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.9599, allocations: 87.94 kB / 1.274 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.9602, allocations: 147.1 kB / 1.274 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.9605, allocations: 235 kB / 1.274 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.9605, allocations: 0 / 1.274 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006947/0.9612, allocations: 386.4 kB / 1.275 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.9613, allocations: 101.1 kB / 1.275 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.9613, allocations: 0 / 1.275 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.9613, allocations: 4 kB / 1.275 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.9614, allocations: 8.312 kB / 1.275 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.9614, allocations: 0 / 1.275 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.9618, allocations: 83.98 kB / 1.275 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.9619, allocations: 19.98 kB / 1.275 GB, free: 14.31 MB / 0.9825 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.0001551/0.962, allocations: 137.6 kB / 1.275 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.9621, allocations: 11.95 kB / 1.275 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.9621, allocations: 16.38 kB / 1.275 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.9621, allocations: 0 / 1.275 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.9621, allocations: 0 / 1.275 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.9621, allocations: 0 / 1.275 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.9623, allocations: 201.5 kB / 1.275 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.9623, allocations: 0 / 1.275 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.118e-05/0.9623, allocations: 0 / 1.275 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.9623, allocations: 3.984 kB / 1.275 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.9623, allocations: 7.984 kB / 1.275 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.9623, allocations: 0 / 1.275 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.9623, allocations: 0 / 1.275 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.9625, allocations: 148.9 kB / 1.276 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.171e-05/0.9626, allocations: 81.06 kB / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.9626, allocations: 7.984 kB / 1.276 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.24e-05/0.9626, allocations: 0 / 1.276 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.9627, allocations: 15.92 kB / 1.276 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.9627, allocations: 4 kB / 1.276 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.221e-05/0.9627, allocations: 97.23 kB / 1.276 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.9627, allocations: 4 kB / 1.276 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002894/0.963, allocations: 43.94 kB / 1.276 GB, free: 13.45 MB / 0.9825 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.000622/0.9637, allocations: 0.6792 MB / 1.276 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000538/0.9642, allocations: 330.5 kB / 1.277 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.9642, allocations: 0 / 1.277 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.995e-05/0.9643, allocations: 31.92 kB / 1.277 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.9646, allocations: 28.19 kB / 1.277 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.9675, allocations: 2.063 MB / 1.279 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.9679, allocations: 0.6968 MB / 1.28 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.219e-05/0.9679, allocations: 16.36 kB / 1.28 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.311e-05/0.968, allocations: 27.42 kB / 1.28 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of SimCode: time 1.142e-06/0.968, allocations: 0 / 1.28 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.9968, allocations: 3.848 MB / 1.283 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/9.114, allocations: 4 kB / 1.283 GB, free: 5.629 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 15.3311409605667]