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.001858/0.001858, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.002455/0.002455, allocations: 217.2 kB / 22.26 MB, free: 5.125 MB / 14.72 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 1.512/1.512, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.874/2.874, allocations: 476.7 MB / 0.7707 GB, free: 4.277 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 67.97 kB / 1.117 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3528, allocations: 169.9 MB / 1.283 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002229/0.3551, allocations: 0.8008 MB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.3569, allocations: 1.192 MB / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.3569, allocations: 4 kB / 1.285 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.301e-05/0.357, allocations: 11.86 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.436e-05/0.3571, allocations: 7.875 kB / 1.285 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.3576, allocations: 143.1 kB / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.3579, allocations: 123.8 kB / 1.286 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.358, allocations: 15.98 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.3581, allocations: 55.89 kB / 1.286 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.3582, allocations: 47.88 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.443e-05/0.3583, allocations: 12 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.251e-05/0.3583, allocations: 27.92 kB / 1.286 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.897e-05/0.3584, allocations: 11.94 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.547e-05/0.3584, allocations: 47.83 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000237/0.3587, allocations: 119.9 kB / 1.286 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3587, allocations: 0 / 1.286 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3587, allocations: 0 / 1.286 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.3587, allocations: 0 / 1.286 GB, free: 9.098 MB / 0.9825 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.0007426/0.3594, allocations: 355.7 kB / 1.286 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.3595, allocations: 12.03 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.572e-05/0.3595, allocations: 38.73 kB / 1.286 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.3596, allocations: 8.891 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3597, allocations: 110.5 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3597, allocations: 4.375 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.3598, allocations: 16.31 kB / 1.286 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.36, allocations: 86.12 kB / 1.287 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3601, allocations: 3.938 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3601, allocations: 0 / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3601, allocations: 3.938 kB / 1.287 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.3604, allocations: 71.91 kB / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.3609, allocations: 307.7 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.3611, allocations: 58.47 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.3613, allocations: 36.92 kB / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.3613, allocations: 0 / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003349/0.3616, allocations: 99.34 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.3616, allocations: 0 / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006496/0.3623, allocations: 169.5 kB / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.3623, allocations: 51.41 kB / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.3624, allocations: 123.1 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.3625, allocations: 25.7 kB / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.3625, allocations: 100.1 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.3626, allocations: 15.91 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.3626, allocations: 29.7 kB / 1.288 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3628, allocations: 326.8 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.363, allocations: 60.28 kB / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.3633, allocations: 86.5 kB / 1.288 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.3637, allocations: 144.1 kB / 1.288 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3637, allocations: 0 / 1.288 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005657/0.3642, allocations: 219.2 kB / 1.288 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/0.3643, allocations: 37.75 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3643, allocations: 8 kB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3643, allocations: 0 / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.3644, allocations: 15.98 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3644, allocations: 0 / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.3647, allocations: 39.89 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.3647, allocations: 7.984 kB / 1.289 GB, free: 6.238 MB / 0.9825 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 0.0001142/0.3648, allocations: 129.7 kB / 1.289 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.783e-05/0.3648, allocations: 7.953 kB / 1.289 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.3649, allocations: 8.375 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3649, allocations: 0 / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3649, allocations: 3.984 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3649, allocations: 3.938 kB / 1.289 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.365, allocations: 152.7 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.365, allocations: 4 kB / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.3651, allocations: 11.98 kB / 1.289 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3651, allocations: 4 kB / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.3652, allocations: 12.08 kB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3652, allocations: 3.938 kB / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3652, allocations: 0 / 1.289 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004739/0.3656, allocations: 152.9 kB / 1.289 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.733e-05/0.3657, allocations: 11.95 kB / 1.289 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.3657, allocations: 4 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.182e-05/0.3658, allocations: 11.98 kB / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.3658, allocations: 7.984 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.3658, allocations: 7.984 kB / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.213e-05/0.3659, allocations: 91.89 kB / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3659, allocations: 0 / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00024/0.3661, allocations: 24 kB / 1.289 GB, free: 5.527 MB / 0.9825 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.0008033/0.3669, allocations: 0.6983 MB / 1.29 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005126/0.3674, allocations: 171.3 kB / 1.29 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3674, allocations: 4 kB / 1.29 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.3676, allocations: 47.89 kB / 1.29 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.3679, allocations: 14.17 kB / 1.29 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.3704, allocations: 1.64 MB / 1.292 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.3707, allocations: 0.6923 MB / 1.292 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.001e-05/0.3707, allocations: 4 kB / 1.292 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.292e-05/0.3708, allocations: 27.42 kB / 1.292 GB, free: 2.066 MB / 0.9825 GB Notification: Performance of SimCode: time 6.02e-07/0.3708, allocations: 0 / 1.292 GB, free: 2.066 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.4025, allocations: 2.81 MB / 1.295 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.71, allocations: 4.156 kB / 1.295 GB, free: 15.4 MB / 0.9981 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.400292475009337]