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.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.001814/0.001814, 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.002016/0.002016, 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.481/1.481, 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 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.16/3.16, allocations: 497.2 MB / 0.7812 GB, free: 33.57 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 67.97 kB / 1.134 GB, free: 33.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.41, allocations: 173.9 MB / 1.304 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00204/0.412, allocations: 0.6879 MB / 1.305 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001782/0.4138, allocations: 1.284 MB / 1.306 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.297e-05/0.4138, allocations: 0 / 1.306 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.4139, allocations: 7.922 kB / 1.306 GB, free: 15.56 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.941e-05/0.414, allocations: 19.8 kB / 1.306 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008255/0.4148, allocations: 318.5 kB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.4151, allocations: 251.5 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.4152, allocations: 12.17 kB / 1.306 GB, free: 14.98 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.4154, allocations: 99.86 kB / 1.307 GB, free: 14.88 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.4156, allocations: 99.67 kB / 1.307 GB, free: 14.79 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.4156, allocations: 24 kB / 1.307 GB, free: 14.76 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.802e-05/0.4157, allocations: 35.92 kB / 1.307 GB, free: 14.73 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.4157, allocations: 8 kB / 1.307 GB, free: 14.72 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.4159, allocations: 91.72 kB / 1.307 GB, free: 14.63 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.4161, allocations: 227.6 kB / 1.307 GB, free: 14.41 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4162, allocations: 0 / 1.307 GB, free: 14.41 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4162, allocations: 0 / 1.307 GB, free: 14.41 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.4162, allocations: 0 / 1.307 GB, free: 14.41 MB / 1.014 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.0006912/0.4169, allocations: 492.3 kB / 1.308 GB, free: 13.86 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4169, allocations: 12.62 kB / 1.308 GB, free: 13.85 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.16e-05/0.4169, allocations: 34.75 kB / 1.308 GB, free: 13.8 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.417, allocations: 16.89 kB / 1.308 GB, free: 13.79 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.4172, allocations: 178.7 kB / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.4172, allocations: 4.375 kB / 1.308 GB, free: 13.57 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.4173, allocations: 20.38 kB / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.4174, allocations: 61.92 kB / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.4174, allocations: 0 / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.4174, allocations: 0 / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.4174, allocations: 0 / 1.308 GB, free: 13.49 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.003e-05/0.4175, allocations: 27.92 kB / 1.308 GB, free: 13.46 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.4181, allocations: 424.5 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 7.409e-05/0.4182, allocations: 30.52 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.4182, allocations: 20.94 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.4182, allocations: 3.984 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002101/0.4184, allocations: 99.34 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.4184, allocations: 3.938 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0003332/0.4188, allocations: 141.5 kB / 1.309 GB, free: 12.67 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.4188, allocations: 55.34 kB / 1.309 GB, free: 12.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.4189, allocations: 133.8 kB / 1.309 GB, free: 12.46 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.419, allocations: 37.7 kB / 1.309 GB, free: 12.42 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.155e-05/0.4191, allocations: 100.1 kB / 1.309 GB, free: 12.32 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.4191, allocations: 15.97 kB / 1.309 GB, free: 12.3 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.4192, allocations: 69.67 kB / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4194, allocations: 322.8 kB / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.4196, allocations: 87.95 kB / 1.309 GB, free: 11.82 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.4198, allocations: 134 kB / 1.309 GB, free: 11.67 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.4201, allocations: 243 kB / 1.31 GB, free: 11.39 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4201, allocations: 0 / 1.31 GB, free: 11.39 MB / 1.014 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000616/0.4207, allocations: 383.6 kB / 1.31 GB, free: 10.99 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.471e-05/0.4208, allocations: 93.09 kB / 1.31 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.4208, allocations: 4 kB / 1.31 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.4208, allocations: 4 kB / 1.31 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-05/0.4209, allocations: 12.11 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.4209, allocations: 4 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.4213, allocations: 83.8 kB / 1.31 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.4214, allocations: 19.98 kB / 1.31 GB, free: 10.76 MB / 1.014 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.0001272/0.4215, allocations: 134.8 kB / 1.31 GB, free: 10.62 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.4215, allocations: 7.953 kB / 1.31 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.4215, allocations: 16.36 kB / 1.31 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4215, allocations: 0 / 1.31 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4216, allocations: 4 kB / 1.31 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4216, allocations: 0 / 1.31 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.4217, allocations: 189.6 kB / 1.311 GB, free: 10.35 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.4217, allocations: 0 / 1.311 GB, free: 10.35 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.772e-05/0.4218, allocations: 15.92 kB / 1.311 GB, free: 10.33 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4218, allocations: 3.938 kB / 1.311 GB, free: 10.33 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.4218, allocations: 4 kB / 1.311 GB, free: 10.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4218, allocations: 0 / 1.311 GB, free: 10.32 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4218, allocations: 4 kB / 1.311 GB, free: 10.32 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002082/0.422, allocations: 141.2 kB / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.422, allocations: 89 kB / 1.311 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.4221, allocations: 4 kB / 1.311 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.125e-05/0.4221, allocations: 0 / 1.311 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.4221, allocations: 7.984 kB / 1.311 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.4221, allocations: 12 kB / 1.311 GB, free: 10.04 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.588e-05/0.4222, allocations: 97.66 kB / 1.311 GB, free: 9.941 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.4222, allocations: 0 / 1.311 GB, free: 9.941 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002601/0.4225, allocations: 47.98 kB / 1.311 GB, free: 9.895 MB / 1.014 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.0005839/0.423, allocations: 0.6787 MB / 1.312 GB, free: 9.188 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004903/0.4235, allocations: 326 kB / 1.312 GB, free: 8.832 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4235, allocations: 0 / 1.312 GB, free: 8.832 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.331e-05/0.4236, allocations: 31.98 kB / 1.312 GB, free: 8.801 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.4238, allocations: 22.7 kB / 1.312 GB, free: 8.781 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.4265, allocations: 2.077 MB / 1.314 GB, free: 6.562 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.4268, allocations: 0.6924 MB / 1.315 GB, free: 5.844 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.915e-05/0.4269, allocations: 8.422 kB / 1.315 GB, free: 5.836 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.957e-05/0.4269, allocations: 23.44 kB / 1.315 GB, free: 5.812 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/0.4269, allocations: 0 / 1.315 GB, free: 5.812 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.4556, allocations: 3.839 MB / 1.319 GB, free: 2.105 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.54, allocations: 15.97 kB / 1.319 GB, free: 2.09 MB / 1.014 GB " [Timeout remaining time 291] (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_2/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: 15.307062460109591]