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.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.0009099/0.0009099, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008656/0.0008656, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 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 0.8997/0.8997, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.682/1.682, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_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 2.945e-06/2.945e-06, allocations: 0 / 0.9505 GB, free: 3.461 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.661e-05/2.956e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.457 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001403/0.001433, allocations: 0.69 MB / 0.9512 GB, free: 2.766 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.002667, allocations: 1.28 MB / 0.9524 GB, free: 1.473 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.826e-05/0.002715, allocations: 0 / 0.9524 GB, free: 1.473 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.041e-05/0.002745, allocations: 11.88 kB / 0.9524 GB, free: 1.461 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.00282, allocations: 23.8 kB / 0.9525 GB, free: 1.438 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.00347, allocations: 306 kB / 0.9528 GB, free: 1.145 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.003701, allocations: 259.5 kB / 0.953 GB, free: 0.8906 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.269e-05/0.003793, allocations: 12.19 kB / 0.953 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.003927, allocations: 139.8 kB / 0.9532 GB, free: 0.7383 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.004056, allocations: 83.78 kB / 0.9532 GB, free: 0.6562 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.004086, allocations: 24 kB / 0.9533 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.79e-05/0.004153, allocations: 35.98 kB / 0.9533 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.004173, allocations: 4 kB / 0.9533 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 7.053e-05/0.004244, allocations: 79.86 kB / 0.9534 GB, free: 0.5156 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.004476, allocations: 271.3 kB / 0.9536 GB, free: 256 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.004478, allocations: 0 / 0.9536 GB, free: 256 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.303e-06/0.004479, allocations: 0 / 0.9536 GB, free: 256 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.004484, allocations: 0 / 0.9536 GB, free: 256 kB / 0.9011 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.0004512/0.004935, allocations: 431.1 kB / 0.954 GB, free: 15.78 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.004971, allocations: 8.031 kB / 0.954 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.932e-05/0.005001, allocations: 38.73 kB / 0.9541 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.00505, allocations: 12.89 kB / 0.9541 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.627e-05/0.005126, allocations: 117.7 kB / 0.9542 GB, free: 15.57 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.005147, allocations: 8.375 kB / 0.9542 GB, free: 15.57 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.652e-05/0.005174, allocations: 20.36 kB / 0.9542 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.968e-05/0.005273, allocations: 58.17 kB / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.00528, allocations: 192 / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.005288, allocations: 384 / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.005294, allocations: 7.938 kB / 0.9543 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.047e-05/0.005335, allocations: 23.98 kB / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003995/0.005734, allocations: 339.8 kB / 0.9546 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 5.419e-05/0.005788, allocations: 34.45 kB / 0.9547 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.539e-05/0.005814, allocations: 16.94 kB / 0.9547 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.005822, allocations: 4 kB / 0.9547 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.005987, allocations: 103.3 kB / 0.9548 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.005989, allocations: 3.938 kB / 0.9548 GB, free: 14.89 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10): time 0.0002398/0.006228, allocations: 137.6 kB / 0.9549 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.006262, allocations: 59.34 kB / 0.955 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.83e-05/0.00634, allocations: 137.7 kB / 0.9551 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.006368, allocations: 37.7 kB / 0.9552 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.253e-05/0.00642, allocations: 96.14 kB / 0.9553 GB, free: 14.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.006438, allocations: 27.91 kB / 0.9553 GB, free: 14.37 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.006517, allocations: 66.05 kB / 0.9553 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.635e-05/0.006593, allocations: 322.8 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.006756, allocations: 177 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.006924, allocations: 223.2 kB / 0.956 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.007107, allocations: 254.9 kB / 0.9563 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.007112, allocations: 3.938 kB / 0.9563 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000554/0.007666, allocations: 467.6 kB / 0.9567 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.007715, allocations: 97.08 kB / 0.9568 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.007721, allocations: 4 kB / 0.9568 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.007733, allocations: 0 / 0.9568 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.898e-05/0.007752, allocations: 12.12 kB / 0.9568 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.007759, allocations: 4 kB / 0.9568 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.008023, allocations: 83.8 kB / 0.9569 GB, free: 12.52 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.008049, allocations: 15.98 kB / 0.9569 GB, free: 12.51 MB / 0.9167 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 8.551e-05/0.008135, allocations: 137.8 kB / 0.9571 GB, free: 12.36 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.008146, allocations: 7.953 kB / 0.9571 GB, free: 12.36 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.436e-05/0.00817, allocations: 12.42 kB / 0.9571 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.008172, allocations: 4 kB / 0.9571 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.008177, allocations: 0 / 0.9571 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.00818, allocations: 0 / 0.9571 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.52e-05/0.008275, allocations: 160.6 kB / 0.9572 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.008276, allocations: 0 / 0.9572 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-06/0.008284, allocations: 7.938 kB / 0.9572 GB, free: 12.13 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.008285, allocations: 0 / 0.9572 GB, free: 12.13 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.008292, allocations: 0 / 0.9572 GB, free: 12.13 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.008295, allocations: 8 kB / 0.9573 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008296, allocations: 0 / 0.9573 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.008427, allocations: 144.9 kB / 0.9574 GB, free: 11.96 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.008438, allocations: 15.84 kB / 0.9574 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.008449, allocations: 0 / 0.9574 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.555e-05/0.008465, allocations: 0 / 0.9574 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.008495, allocations: 11.98 kB / 0.9574 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.008502, allocations: 7.984 kB / 0.9574 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.947e-05/0.008542, allocations: 98.5 kB / 0.9575 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7.1e-08/0.008542, allocations: 0 / 0.9575 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001938/0.008735, allocations: 47.94 kB / 0.9576 GB, free: 11.79 MB / 0.9167 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.0003562/0.009092, allocations: 0.6826 MB / 0.9582 GB, free: 11.07 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003523/0.009444, allocations: 419.1 kB / 0.9586 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.009446, allocations: 0 / 0.9586 GB, free: 10.61 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.965e-05/0.009486, allocations: 31.98 kB / 0.9587 GB, free: 10.58 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.009691, allocations: 31.02 kB / 0.9587 GB, free: 10.55 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.01152, allocations: 2.43 MB / 0.9611 GB, free: 7.902 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.94e-05/0.01157, allocations: 79.67 kB / 0.9611 GB, free: 7.801 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.737e-05/0.01161, allocations: 12.48 kB / 0.9612 GB, free: 7.789 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.01165, allocations: 24.5 kB / 0.9612 GB, free: 7.766 MB / 0.9167 GB Notification: Performance of SimCode: time 7.31e-07/0.01165, allocations: 0 / 0.9612 GB, free: 7.766 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.02954, allocations: 4.799 MB / 0.9659 GB, free: 3.168 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.684/6.713, allocations: 4 kB / 0.9659 GB, free: 3.164 MB / 0.9167 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.837194299325347]