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.000891/0.000891, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009092/0.0009092, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8912/0.8912, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.671/1.671, allocations: 359 MB / 0.6037 GB, free: 11.1 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 3.928e-06/3.928e-06, allocations: 0 / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.968e-05, allocations: 6.281 kB / 0.9505 GB, free: 3.488 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001669/0.001698, allocations: 0.7954 MB / 0.9513 GB, free: 2.688 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.003261, allocations: 1.323 MB / 0.9526 GB, free: 1.352 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.618e-05/0.003337, allocations: 0 / 0.9526 GB, free: 1.352 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 4.499e-05/0.003382, allocations: 7.875 kB / 0.9526 GB, free: 1.344 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.003491, allocations: 27.72 kB / 0.9526 GB, free: 1.316 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006954/0.004186, allocations: 325 kB / 0.9529 GB, free: 1.008 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002608/0.004447, allocations: 291.5 kB / 0.9532 GB, free: 0.7227 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.00457, allocations: 37.55 kB / 0.9532 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.004736, allocations: 159.8 kB / 0.9534 GB, free: 0.5234 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.004888, allocations: 79.8 kB / 0.9535 GB, free: 456 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.004925, allocations: 28 kB / 0.9535 GB, free: 428 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 8.228e-05/0.005007, allocations: 39.98 kB / 0.9535 GB, free: 388 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.971e-05/0.005037, allocations: 23.91 kB / 0.9536 GB, free: 364 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 8.439e-05/0.005121, allocations: 91.73 kB / 0.9536 GB, free: 272 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000329/0.00545, allocations: 311.2 kB / 0.9539 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.005454, allocations: 4 kB / 0.9539 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.893e-06/0.005456, allocations: 0 / 0.9539 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.005462, allocations: 0 / 0.9539 GB, free: 15.96 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.0005955/0.006057, allocations: 466.8 kB / 0.9544 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.006105, allocations: 8.031 kB / 0.9544 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.99e-05/0.006135, allocations: 38.75 kB / 0.9544 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.634e-05/0.006191, allocations: 16.89 kB / 0.9544 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.891e-05/0.00629, allocations: 140.5 kB / 0.9546 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.006322, allocations: 16.31 kB / 0.9546 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.006353, allocations: 24.12 kB / 0.9546 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.006501, allocations: 99.7 kB / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.006509, allocations: 0 / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.006518, allocations: 0 / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.006523, allocations: 0 / 0.9547 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.742e-05/0.006601, allocations: 47.98 kB / 0.9548 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005134/0.007114, allocations: 411.7 kB / 0.9552 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.007309, allocations: 62.55 kB / 0.9552 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.894e-05/0.007348, allocations: 32.91 kB / 0.9552 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.007359, allocations: 4 kB / 0.9553 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.007558, allocations: 119.3 kB / 0.9554 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.00756, allocations: 0 / 0.9554 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0002757/0.007835, allocations: 173.4 kB / 0.9555 GB, free: 14.18 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.007873, allocations: 59.39 kB / 0.9556 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.007971, allocations: 160 kB / 0.9557 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.007999, allocations: 37.7 kB / 0.9558 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 6.289e-05/0.008062, allocations: 108.1 kB / 0.9559 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.008083, allocations: 35.73 kB / 0.9559 GB, free: 13.75 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.481e-05/0.008168, allocations: 81.56 kB / 0.956 GB, free: 13.67 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.008259, allocations: 322.8 kB / 0.9563 GB, free: 13.34 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.008437, allocations: 185 kB / 0.9565 GB, free: 13.14 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.008621, allocations: 241.7 kB / 0.9567 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.009087, allocations: 249.6 kB / 0.9569 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.009089, allocations: 0 / 0.9569 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004435/0.009533, allocations: 499.7 kB / 0.9574 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 5.891e-05/0.009592, allocations: 105 kB / 0.9575 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.009597, allocations: 0 / 0.9575 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.009611, allocations: 4 kB / 0.9575 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.009657, allocations: 11.94 kB / 0.9575 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.009665, allocations: 4 kB / 0.9575 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.009907, allocations: 91.81 kB / 0.9576 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.009933, allocations: 23.92 kB / 0.9576 GB, free: 11.8 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 0.0001039/0.01004, allocations: 133.8 kB / 0.9578 GB, free: 11.66 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.01005, allocations: 7.953 kB / 0.9578 GB, free: 11.66 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.01009, allocations: 16.72 kB / 0.9578 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.01009, allocations: 7.938 kB / 0.9578 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.0101, allocations: 0 / 0.9578 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.0101, allocations: 3.984 kB / 0.9578 GB, free: 11.63 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01024, allocations: 180.7 kB / 0.958 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.01024, allocations: 4 kB / 0.958 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.035e-05/0.01027, allocations: 8 kB / 0.958 GB, free: 11.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.01028, allocations: 0 / 0.958 GB, free: 11.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.01029, allocations: 11.92 kB / 0.958 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01029, allocations: 0 / 0.958 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01029, allocations: 4 kB / 0.958 GB, free: 11.38 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001723/0.01046, allocations: 160.8 kB / 0.9582 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.768e-05/0.01048, allocations: 19.78 kB / 0.9582 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.0105, allocations: 7.938 kB / 0.9582 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.132e-05/0.01052, allocations: 7.938 kB / 0.9582 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.01056, allocations: 11.97 kB / 0.9582 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.01057, allocations: 16 kB / 0.9582 GB, free: 11.15 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.792e-05/0.01063, allocations: 113.2 kB / 0.9583 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.01063, allocations: 0 / 0.9583 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001861/0.01081, allocations: 48 kB / 0.9584 GB, free: 10.99 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.0004488/0.01126, allocations: 0.7163 MB / 0.9591 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003989/0.01166, allocations: 431.2 kB / 0.9595 GB, free: 9.773 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01166, allocations: 384 / 0.9595 GB, free: 9.773 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.578e-05/0.01172, allocations: 47.92 kB / 0.9595 GB, free: 9.727 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.01194, allocations: 22.48 kB / 0.9596 GB, free: 9.707 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.01401, allocations: 2.617 MB / 0.9621 GB, free: 6.875 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.972e-05/0.01408, allocations: 98.77 kB / 0.9622 GB, free: 6.758 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 4.927e-05/0.01413, allocations: 12.64 kB / 0.9622 GB, free: 6.742 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.01418, allocations: 40.48 kB / 0.9623 GB, free: 6.703 MB / 0.9167 GB Notification: Performance of SimCode: time 1.052e-06/0.01418, allocations: 3.938 kB / 0.9623 GB, free: 6.699 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.03388, allocations: 5.215 MB / 0.9674 GB, free: 1.676 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.741/6.774, allocations: 3.688 kB / 0.9674 GB, free: 1.676 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Integers.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_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.csv","/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] "Error: Could not read variable integerSwitch.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.844966184347868]