Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001586/0.001586, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001897/0.001897, allocations: 211.7 kB / 22.24 MB, free: 4.859 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.559/1.559, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.335/3.335, allocations: 0.4892 GB / 0.7943 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_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.002144/0.002144, allocations: 67.69 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3711, allocations: 176.1 MB / 1.325 GB, free: 2.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00218/0.3733, allocations: 0.7679 MB / 1.326 GB, free: 1.578 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.3749, allocations: 1.171 MB / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.151e-05/0.375, allocations: 4 kB / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.561e-05/0.375, allocations: 11.88 kB / 1.327 GB, free: 388 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.809e-05/0.3751, allocations: 15.8 kB / 1.327 GB, free: 372 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.3756, allocations: 139.4 kB / 1.327 GB, free: 236 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001938/0.3758, allocations: 119.8 kB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.101e-05/0.3759, allocations: 15.98 kB / 1.327 GB, free: 100 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.716e-05/0.376, allocations: 47.91 kB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.3762, allocations: 51.73 kB / 1.327 GB, free: 0 / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.3762, allocations: 16.05 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.16e-05/0.3763, allocations: 24 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.3763, allocations: 11.92 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.464e-05/0.3764, allocations: 39.91 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.3766, allocations: 123.8 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3766, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3766, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.3766, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 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.0006588/0.3773, allocations: 351.7 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3773, allocations: 12.03 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.693e-05/0.3774, allocations: 38.75 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.3774, allocations: 4.938 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.3775, allocations: 118.5 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3776, allocations: 12.25 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.3776, allocations: 8.375 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.3779, allocations: 78.2 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3779, allocations: 3.938 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.3779, allocations: 0 / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3779, allocations: 7.938 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.3782, allocations: 67.92 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.3787, allocations: 287.8 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.3789, allocations: 58.47 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.379, allocations: 44.91 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.3791, allocations: 0 / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.3794, allocations: 99.34 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.3794, allocations: 0 / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0006306/0.38, allocations: 169.5 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3801, allocations: 51.41 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.3802, allocations: 122.1 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.3802, allocations: 33.62 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.708e-05/0.3803, allocations: 96.09 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/0.3803, allocations: 11.91 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.583e-05/0.3804, allocations: 33.7 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3805, allocations: 322.8 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.3808, allocations: 89.64 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.381, allocations: 112.2 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.3814, allocations: 144.1 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3814, allocations: 0 / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005836/0.382, allocations: 252.9 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.382, allocations: 37.69 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.382, allocations: 80 / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.382, allocations: 0 / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.3822, allocations: 15.98 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3822, allocations: 7.969 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3824, allocations: 47.95 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.3824, allocations: 7.938 kB / 1.33 GB, free: 12.84 MB / 1.029 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.0001103/0.3825, allocations: 122.3 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.661e-05/0.3826, allocations: 7.953 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.545e-05/0.3826, allocations: 12.36 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3826, allocations: 3.938 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3826, allocations: 0 / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3826, allocations: 0 / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.3828, allocations: 152.7 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3828, allocations: 320 / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3829, allocations: 11.98 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3829, allocations: 8 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3829, allocations: 4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3829, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3829, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000426/0.3833, allocations: 156.9 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.168e-05/0.3833, allocations: 7.953 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.3833, allocations: 7.984 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.3834, allocations: 11.98 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.3835, allocations: 7.984 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.331e-06/0.3835, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.373e-05/0.3835, allocations: 101.8 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3835, allocations: 0 / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002264/0.3838, allocations: 20.09 kB / 1.331 GB, free: 12.14 MB / 1.029 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.0007849/0.3845, allocations: 0.6942 MB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005269/0.3851, allocations: 205 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3851, allocations: 128 / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001808/0.3853, allocations: 51.91 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.3855, allocations: 11.92 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.3881, allocations: 1.762 MB / 1.333 GB, free: 9.25 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.818e-05/0.3882, allocations: 75.33 kB / 1.334 GB, free: 9.156 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.257e-05/0.3882, allocations: 8 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.3883, allocations: 15.44 kB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of SimCode: time 6.11e-07/0.3883, allocations: 0 / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03248/0.4207, allocations: 3.381 MB / 1.337 GB, free: 5.906 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.96, allocations: 6.562 kB / 1.337 GB, free: 5.902 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 19.033963077235967]