Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008913/0.0008913, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001357/0.001357, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8972/0.8972, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.769/1.769, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.985e-05/2.211e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001542/0.001565, allocations: 0.804 MB / 1 GB, free: 12.68 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.002931, allocations: 1.315 MB / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.518e-05/0.002986, allocations: 0 / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.523e-05/0.003021, allocations: 11.86 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.003093, allocations: 23.73 kB / 1.002 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008072/0.0039, allocations: 326.9 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.004152, allocations: 291.5 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.004264, allocations: 41.48 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.00441, allocations: 159.8 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.004533, allocations: 87.73 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.004567, allocations: 28 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.004633, allocations: 43.97 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.316e-05/0.004656, allocations: 15.92 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.367e-05/0.004729, allocations: 91.86 kB / 1.003 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.005038, allocations: 311.2 kB / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.005041, allocations: 0 / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.272e-06/0.005042, allocations: 0 / 1.003 GB, free: 9.949 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.005047, allocations: 0 / 1.003 GB, free: 9.949 MB / 0.9636 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.0004933/0.00554, allocations: 458.9 kB / 1.004 GB, free: 9.453 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.005578, allocations: 8.75 kB / 1.004 GB, free: 9.445 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.035e-05/0.005608, allocations: 42.73 kB / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.005659, allocations: 20.84 kB / 1.004 GB, free: 9.375 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.602e-05/0.005735, allocations: 134.1 kB / 1.004 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.005755, allocations: 12.38 kB / 1.004 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.005784, allocations: 24.12 kB / 1.004 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.005912, allocations: 89.64 kB / 1.004 GB, free: 9.09 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.005919, allocations: 0 / 1.004 GB, free: 9.09 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.005929, allocations: 4 kB / 1.004 GB, free: 9.086 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.005933, allocations: 0 / 1.004 GB, free: 9.086 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.955e-05/0.006013, allocations: 59.86 kB / 1.004 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.006484, allocations: 403.5 kB / 1.004 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.00665, allocations: 66.61 kB / 1.004 GB, free: 8.516 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.681e-05/0.006687, allocations: 32.89 kB / 1.004 GB, free: 8.48 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.006696, allocations: 4 kB / 1.004 GB, free: 8.477 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.00684, allocations: 111.4 kB / 1.005 GB, free: 8.355 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.006841, allocations: 0 / 1.005 GB, free: 8.355 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.00026/0.007101, allocations: 177.5 kB / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.00713, allocations: 55.41 kB / 1.005 GB, free: 8.109 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.007219, allocations: 158.3 kB / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.007245, allocations: 41.64 kB / 1.005 GB, free: 7.898 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.007299, allocations: 112 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.007504, allocations: 35.72 kB / 1.005 GB, free: 7.75 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.007585, allocations: 73.67 kB / 1.005 GB, free: 7.672 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.007696, allocations: 326.8 kB / 1.005 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.007883, allocations: 189 kB / 1.006 GB, free: 7.141 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.008071, allocations: 244.7 kB / 1.006 GB, free: 6.863 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.00828, allocations: 256.9 kB / 1.006 GB, free: 6.574 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.008283, allocations: 0 / 1.006 GB, free: 6.574 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004423/0.008725, allocations: 0.4917 MB / 1.007 GB, free: 6.039 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.008775, allocations: 101 kB / 1.007 GB, free: 5.922 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.00878, allocations: 0 / 1.007 GB, free: 5.922 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.008793, allocations: 4 kB / 1.007 GB, free: 5.918 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.927e-05/0.008832, allocations: 11.98 kB / 1.007 GB, free: 5.906 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.008839, allocations: 4 kB / 1.007 GB, free: 5.902 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.009081, allocations: 87.98 kB / 1.007 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.009108, allocations: 23.97 kB / 1.007 GB, free: 5.793 MB / 0.9636 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.667e-05/0.009195, allocations: 133.8 kB / 1.007 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.009207, allocations: 11.91 kB / 1.007 GB, free: 5.641 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.009232, allocations: 20.7 kB / 1.007 GB, free: 5.621 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.009234, allocations: 3.938 kB / 1.007 GB, free: 5.617 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.009239, allocations: 0 / 1.007 GB, free: 5.617 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.009244, allocations: 4 kB / 1.007 GB, free: 5.613 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.009358, allocations: 176.7 kB / 1.007 GB, free: 5.398 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.009359, allocations: 0 / 1.007 GB, free: 5.398 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.209e-05/0.009381, allocations: 11.98 kB / 1.007 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.009384, allocations: 7.938 kB / 1.007 GB, free: 5.379 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.009393, allocations: 7.938 kB / 1.007 GB, free: 5.371 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.009394, allocations: 0 / 1.007 GB, free: 5.371 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.009395, allocations: 0 / 1.007 GB, free: 5.371 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.009545, allocations: 164.9 kB / 1.007 GB, free: 5.195 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.009561, allocations: 15.84 kB / 1.007 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.009574, allocations: 3.938 kB / 1.007 GB, free: 5.176 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.823e-05/0.009592, allocations: 15.98 kB / 1.007 GB, free: 5.16 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.009621, allocations: 7.984 kB / 1.007 GB, free: 5.152 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.009628, allocations: 8 kB / 1.007 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.115e-05/0.009679, allocations: 116.1 kB / 1.008 GB, free: 5.031 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009679, allocations: 0 / 1.008 GB, free: 5.031 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001773/0.009856, allocations: 48 kB / 1.008 GB, free: 4.984 MB / 0.9636 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.0003479/0.0102, allocations: 0.706 MB / 1.008 GB, free: 4.246 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003526/0.01056, allocations: 443.3 kB / 1.009 GB, free: 3.758 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01056, allocations: 0 / 1.009 GB, free: 3.758 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.854e-05/0.01061, allocations: 43.98 kB / 1.009 GB, free: 3.715 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.01078, allocations: 31.91 kB / 1.009 GB, free: 3.684 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.01268, allocations: 2.616 MB / 1.011 GB, free: 0.8555 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.935e-05/0.01273, allocations: 94.78 kB / 1.011 GB, free: 0.7422 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.269e-05/0.01277, allocations: 16.64 kB / 1.011 GB, free: 0.7227 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.01281, allocations: 44.36 kB / 1.011 GB, free: 0.6797 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.01281, allocations: 0 / 1.011 GB, free: 0.6797 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.029, allocations: 5.209 MB / 1.017 GB, free: 11.67 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.708/6.737, allocations: 11.33 kB / 1.017 GB, free: 11.66 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.923212739638984]