Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.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.001932/0.001932, allocations: 109.2 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.002462/0.002462, allocations: 219 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.549/1.549, allocations: 230.6 MB / 256 MB, free: 7.992 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.394/3.394, allocations: 0.49 GB / 0.7951 GB, free: 33.41 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.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_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.002094/0.002094, allocations: 73.22 kB / 1.154 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3876, allocations: 176.1 MB / 1.326 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001803/0.3894, allocations: 0.7129 MB / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001736/0.3911, allocations: 1.303 MB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.603e-05/0.3912, allocations: 8 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.3912, allocations: 3.938 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.083e-05/0.3913, allocations: 27.78 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008055/0.3921, allocations: 306.9 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.3924, allocations: 251.6 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.517e-05/0.3925, allocations: 20.16 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.3926, allocations: 99.81 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.3928, allocations: 95.73 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.3928, allocations: 20 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.883e-05/0.3929, allocations: 43.92 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.393, allocations: 8 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3931, allocations: 91.73 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.3933, allocations: 219.6 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3933, allocations: 0 / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of FrontEnd: time 5.06e-06/0.3933, allocations: 3.984 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.3934, allocations: 4 kB / 1.329 GB, free: 14.72 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.0005602/0.3939, allocations: 419.1 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3939, allocations: 8.031 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.228e-05/0.394, allocations: 42.69 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.327e-05/0.394, allocations: 8.938 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.3941, allocations: 118.4 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.3942, allocations: 12.36 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.3942, allocations: 20.31 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.3943, allocations: 57.98 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.3943, allocations: 4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3944, allocations: 4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3944, allocations: 0 / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.243e-05/0.3944, allocations: 19.98 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.395, allocations: 387.5 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.55e-05/0.395, allocations: 30.52 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.783e-05/0.3951, allocations: 20.94 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.3951, allocations: 4 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.3953, allocations: 107.2 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.3953, allocations: 0 / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0002916/0.3955, allocations: 133.6 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.3956, allocations: 55.39 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.3957, allocations: 131.5 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.271e-05/0.3958, allocations: 41.64 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.3958, allocations: 100.2 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.3959, allocations: 23.84 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.396, allocations: 69.67 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3961, allocations: 322.8 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.3963, allocations: 87.95 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.3965, allocations: 135.8 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.3968, allocations: 238.5 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3968, allocations: 8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006126/0.3974, allocations: 378.9 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.3975, allocations: 101.1 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3975, allocations: 4 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3975, allocations: 0 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.723e-05/0.3976, allocations: 11.88 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.3976, allocations: 7.984 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.398, allocations: 83.98 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.08e-05/0.3981, allocations: 19.98 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001147/0.3982, allocations: 126.3 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.3982, allocations: 7.953 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.663e-05/0.3982, allocations: 12.38 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3982, allocations: 11.97 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3982, allocations: 0 / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3982, allocations: 0 / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.3984, allocations: 160.7 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3984, allocations: 0 / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-05/0.3984, allocations: 7.938 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.3984, allocations: 3.984 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.3984, allocations: 0 / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3984, allocations: 0 / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3984, allocations: 4 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.3986, allocations: 140.9 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.017e-05/0.3986, allocations: 19.88 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.3987, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.316e-05/0.3987, allocations: 4 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.164e-05/0.3987, allocations: 7.984 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.3987, allocations: 4 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.877e-05/0.3988, allocations: 101.9 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3988, allocations: 4 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002538/0.399, allocations: 47.98 kB / 1.333 GB, free: 10.55 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005236/0.3996, allocations: 0.6749 MB / 1.333 GB, free: 9.844 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004567/0.4, allocations: 326.3 kB / 1.334 GB, free: 9.488 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4, allocations: 8.062 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.202e-05/0.4001, allocations: 35.91 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.4003, allocations: 21.39 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.403, allocations: 2.062 MB / 1.336 GB, free: 7.223 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4033, allocations: 0.6963 MB / 1.336 GB, free: 6.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.511e-05/0.4033, allocations: 12.42 kB / 1.336 GB, free: 6.488 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.886e-05/0.4034, allocations: 23.44 kB / 1.336 GB, free: 6.465 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.4034, allocations: 0 / 1.336 GB, free: 6.465 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03759/0.441, allocations: 3.978 MB / 1.34 GB, free: 2.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.46, allocations: 12.58 kB / 1.34 GB, free: 2.637 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.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.46857317001559]