Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.0008032/0.0008032, 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.001006/0.001006, 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.9166/0.9166, 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.694/1.694, 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.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.9506 GB, free: 3.398 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689e-05/1.891e-05, allocations: 6.219 kB / 0.9506 GB, free: 3.391 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00142/0.001439, allocations: 0.7641 MB / 0.9513 GB, free: 2.621 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.00259, allocations: 1.175 MB / 0.9525 GB, free: 1.434 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.641e-05/0.002637, allocations: 0 / 0.9525 GB, free: 1.434 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.002662, allocations: 3.938 kB / 0.9525 GB, free: 1.43 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.81e-05/0.00273, allocations: 19.8 kB / 0.9525 GB, free: 1.41 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.003174, allocations: 134.4 kB / 0.9526 GB, free: 1.281 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.003324, allocations: 127.7 kB / 0.9527 GB, free: 1.156 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 8.301e-05/0.003407, allocations: 15.98 kB / 0.9528 GB, free: 1.141 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.003509, allocations: 75.88 kB / 0.9528 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 7.674e-05/0.003585, allocations: 39.88 kB / 0.9529 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.003609, allocations: 12 kB / 0.9529 GB, free: 1.016 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.528e-05/0.003664, allocations: 19.98 kB / 0.9529 GB, free: 0.9961 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.003685, allocations: 15.98 kB / 0.9529 GB, free: 0.9805 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.608e-05/0.003731, allocations: 35.91 kB / 0.9529 GB, free: 0.9453 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.003947, allocations: 143.6 kB / 0.9531 GB, free: 0.8047 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.00395, allocations: 4 kB / 0.9531 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.022e-06/0.003951, allocations: 0 / 0.9531 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.003956, allocations: 0 / 0.9531 GB, free: 0.8008 MB / 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.0004439/0.004399, allocations: 351.7 kB / 0.9534 GB, free: 428 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.004433, allocations: 12.03 kB / 0.9534 GB, free: 416 kB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.455e-05/0.004458, allocations: 34.75 kB / 0.9535 GB, free: 372 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.379e-05/0.004491, allocations: 12.89 kB / 0.9535 GB, free: 360 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.933e-05/0.004561, allocations: 116.5 kB / 0.9536 GB, free: 220 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.004571, allocations: 8.297 kB / 0.9536 GB, free: 212 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.004586, allocations: 12.38 kB / 0.9536 GB, free: 200 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.004745, allocations: 78.2 kB / 0.9537 GB, free: 116 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.004751, allocations: 192 / 0.9537 GB, free: 116 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.004761, allocations: 4.375 kB / 0.9537 GB, free: 112 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.004767, allocations: 4.125 kB / 0.9537 GB, free: 108 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.004921, allocations: 71.86 kB / 0.9538 GB, free: 36 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.005277, allocations: 275.9 kB / 0.954 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.005384, allocations: 62.53 kB / 0.9541 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.859e-05/0.005462, allocations: 44.84 kB / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.005479, allocations: 0 / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.005659, allocations: 107.2 kB / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.00566, allocations: 0 / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of matching and sorting (n=6): time 0.0003365/0.005996, allocations: 161.6 kB / 0.9544 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.006025, allocations: 55.41 kB / 0.9544 GB, free: 15.26 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.087e-05/0.006096, allocations: 126 kB / 0.9546 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.006112, allocations: 25.7 kB / 0.9546 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.006155, allocations: 92.14 kB / 0.9547 GB, free: 15 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.00617, allocations: 11.91 kB / 0.9547 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.911e-05/0.00622, allocations: 37.69 kB / 0.9547 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.006293, allocations: 322.8 kB / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.006423, allocations: 89.58 kB / 0.9551 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.006551, allocations: 120.2 kB / 0.9552 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.006738, allocations: 136.2 kB / 0.9553 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.00674, allocations: 0 / 0.9553 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003097/0.00705, allocations: 260.9 kB / 0.9556 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.007083, allocations: 36.05 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.007088, allocations: 0 / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.007099, allocations: 3.938 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.34e-05/0.007182, allocations: 28.03 kB / 0.9557 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.007187, allocations: 0 / 0.9557 GB, free: 13.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.007301, allocations: 39.89 kB / 0.9557 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.007315, allocations: 4 kB / 0.9557 GB, free: 13.86 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 6.699e-05/0.007382, allocations: 117.8 kB / 0.9558 GB, free: 13.73 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.007395, allocations: 15.88 kB / 0.9558 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.33e-05/0.007419, allocations: 12.44 kB / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.007421, allocations: 0 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.007426, allocations: 0 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.007429, allocations: 96 / 0.9558 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.846e-05/0.007527, allocations: 152.6 kB / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.007528, allocations: 0 / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.007576, allocations: 19.98 kB / 0.956 GB, free: 13.49 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.007578, allocations: 3.938 kB / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.007585, allocations: 0 / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.007586, allocations: 0 / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.007588, allocations: 0 / 0.956 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.007808, allocations: 157.2 kB / 0.9562 GB, free: 13.31 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-06/0.007817, allocations: 7.938 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.007829, allocations: 4.062 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.912e-05/0.007868, allocations: 15.98 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.007905, allocations: 7.984 kB / 0.9562 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.403e-06/0.007912, allocations: 0 / 0.9562 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 4.075e-05/0.007952, allocations: 100.1 kB / 0.9563 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.007952, allocations: 0 / 0.9563 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001614/0.008114, allocations: 24 kB / 0.9563 GB, free: 13.16 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005571/0.008671, allocations: 0.6942 MB / 0.957 GB, free: 12.43 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003076/0.008978, allocations: 204.9 kB / 0.9572 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.00898, allocations: 3.938 kB / 0.9572 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.784e-05/0.009068, allocations: 43.97 kB / 0.9572 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.009228, allocations: 11.98 kB / 0.9572 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.01068, allocations: 1.769 MB / 0.959 GB, free: 10.26 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.865e-05/0.01072, allocations: 75.33 kB / 0.959 GB, free: 10.16 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.324e-05/0.01076, allocations: 4 kB / 0.959 GB, free: 10.16 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.534e-05/0.0108, allocations: 24.48 kB / 0.9591 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of SimCode: time 3.61e-07/0.0108, allocations: 0 / 0.9591 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.02901, allocations: 3.484 MB / 0.9625 GB, free: 6.816 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.72/6.749, allocations: 9.562 kB / 0.9625 GB, free: 6.809 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.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.823543568141758]