Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.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.0009351/0.0009351, allocations: 68.47 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.0008056/0.0008056, 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.884/0.884, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.634/1.634, 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.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 0.9505 GB, free: 3.461 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.543e-05, allocations: 6.281 kB / 0.9505 GB, free: 3.453 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00132/0.001336, allocations: 0.8084 MB / 0.9513 GB, free: 2.641 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.002855, allocations: 1.307 MB / 0.9526 GB, free: 1.32 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.29e-05/0.002908, allocations: 4 kB / 0.9526 GB, free: 1.316 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.501e-05/0.002943, allocations: 11.81 kB / 0.9526 GB, free: 1.305 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.018e-05/0.003013, allocations: 23.78 kB / 0.9526 GB, free: 1.281 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000588/0.003601, allocations: 321.5 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.003829, allocations: 295.4 kB / 0.9532 GB, free: 0.6875 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.003935, allocations: 33.56 kB / 0.9532 GB, free: 0.6484 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.004075, allocations: 163.7 kB / 0.9534 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.004194, allocations: 87.78 kB / 0.9535 GB, free: 412 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.004226, allocations: 24 kB / 0.9535 GB, free: 388 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.704e-05/0.004293, allocations: 47.98 kB / 0.9535 GB, free: 340 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.323e-05/0.004316, allocations: 23.91 kB / 0.9536 GB, free: 316 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 8.395e-05/0.0044, allocations: 87.8 kB / 0.9537 GB, free: 228 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.004643, allocations: 311.1 kB / 0.954 GB, free: 15.92 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.004645, allocations: 0 / 0.954 GB, free: 15.92 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.223e-06/0.004646, allocations: 4 kB / 0.954 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.00465, allocations: 0 / 0.954 GB, free: 15.91 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004602/0.00511, allocations: 458.8 kB / 0.9544 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.005149, allocations: 12.03 kB / 0.9544 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.681e-05/0.005175, allocations: 34.75 kB / 0.9544 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.005224, allocations: 28.88 kB / 0.9545 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.955e-05/0.005304, allocations: 136 kB / 0.9546 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.00533, allocations: 12.38 kB / 0.9546 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.005358, allocations: 20.12 kB / 0.9546 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.005482, allocations: 91.53 kB / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.005489, allocations: 0 / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.005498, allocations: 0 / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.005503, allocations: 4 kB / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.345e-05/0.005577, allocations: 43.98 kB / 0.9548 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.006043, allocations: 419.6 kB / 0.9552 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.006218, allocations: 70.56 kB / 0.9552 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.712e-05/0.006255, allocations: 28.91 kB / 0.9553 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.006264, allocations: 0 / 0.9553 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.00642, allocations: 111.3 kB / 0.9554 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.006421, allocations: 0 / 0.9554 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0002569/0.006678, allocations: 181.4 kB / 0.9555 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.00671, allocations: 55.41 kB / 0.9556 GB, free: 14.07 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.006801, allocations: 160 kB / 0.9557 GB, free: 13.91 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.006827, allocations: 33.7 kB / 0.9558 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.829e-05/0.006886, allocations: 116.1 kB / 0.9559 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.006906, allocations: 35.73 kB / 0.9559 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.006984, allocations: 77.58 kB / 0.956 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.007062, allocations: 322.8 kB / 0.9563 GB, free: 13.31 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.007225, allocations: 185 kB / 0.9565 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.007406, allocations: 237.7 kB / 0.9567 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.007601, allocations: 259 kB / 0.9569 GB, free: 12.55 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.007603, allocations: 4 kB / 0.957 GB, free: 12.55 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004206/0.008024, allocations: 489.8 kB / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.008073, allocations: 101 kB / 0.9575 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.008079, allocations: 4 kB / 0.9575 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.008091, allocations: 0 / 0.9575 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.969e-05/0.008131, allocations: 19.94 kB / 0.9575 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.008137, allocations: 3.984 kB / 0.9575 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.008376, allocations: 87.94 kB / 0.9576 GB, free: 11.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.008402, allocations: 27.92 kB / 0.9577 GB, free: 11.77 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: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.007e-05/0.008482, allocations: 133.7 kB / 0.9578 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.008494, allocations: 11.95 kB / 0.9578 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.487e-05/0.008519, allocations: 24.7 kB / 0.9578 GB, free: 11.59 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.008522, allocations: 7.984 kB / 0.9578 GB, free: 11.59 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.008527, allocations: 0 / 0.9578 GB, free: 11.59 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.00853, allocations: 0 / 0.9578 GB, free: 11.59 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.008641, allocations: 172.7 kB / 0.958 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.008642, allocations: 0 / 0.958 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.985e-05/0.008661, allocations: 8 kB / 0.958 GB, free: 11.37 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.008663, allocations: 3.984 kB / 0.958 GB, free: 11.36 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.008675, allocations: 11.94 kB / 0.958 GB, free: 11.35 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.008676, allocations: 0 / 0.958 GB, free: 11.35 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.008677, allocations: 0 / 0.958 GB, free: 11.35 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.008823, allocations: 168.1 kB / 0.9582 GB, free: 11.17 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.361e-05/0.008837, allocations: 19.84 kB / 0.9582 GB, free: 11.15 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.00885, allocations: 7.938 kB / 0.9582 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.509e-05/0.008865, allocations: 0 / 0.9582 GB, free: 11.14 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.008897, allocations: 15.97 kB / 0.9582 GB, free: 11.13 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.008903, allocations: 4 kB / 0.9582 GB, free: 11.12 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.22e-05/0.008955, allocations: 121.2 kB / 0.9583 GB, free: 11.01 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008955, allocations: 0 / 0.9583 GB, free: 11.01 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001832/0.009139, allocations: 48 kB / 0.9584 GB, free: 10.96 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.000614/0.009753, allocations: 0.7124 MB / 0.9591 GB, free: 10.22 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003415/0.01009, allocations: 435.2 kB / 0.9595 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.0101, allocations: 0 / 0.9595 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.261e-05/0.01015, allocations: 43.92 kB / 0.9595 GB, free: 9.699 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.01033, allocations: 23.97 kB / 0.9596 GB, free: 9.676 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.01223, allocations: 2.624 MB / 0.9621 GB, free: 6.84 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.139e-05/0.01228, allocations: 94.72 kB / 0.9622 GB, free: 6.727 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.398e-05/0.01232, allocations: 16.64 kB / 0.9622 GB, free: 6.707 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.01236, allocations: 36.48 kB / 0.9623 GB, free: 6.672 MB / 0.9167 GB Notification: Performance of SimCode: time 4.91e-07/0.01236, allocations: 3.938 kB / 0.9623 GB, free: 6.668 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01554/0.0279, allocations: 5.21 MB / 0.9673 GB, free: 1.652 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.81/6.838, allocations: 22.17 kB / 0.9674 GB, free: 1.633 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.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: 10.734452882781625]