Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001931/0.001931, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002773/0.002773, allocations: 211.9 kB / 22.24 MB, free: 5.242 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.812 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.961/2.961, allocations: 476 MB / 0.7699 GB, free: 4.73 MB / 0.6231 GB " [Timeout remaining time 176] 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.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_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.002156/0.002156, allocations: 64.19 kB / 1.117 GB, free: 41.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3276, allocations: 170 MB / 1.283 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001966/0.3296, allocations: 0.6908 MB / 1.283 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001777/0.3313, allocations: 1.278 MB / 1.284 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.641e-05/0.3314, allocations: 4 kB / 1.285 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.115e-05/0.3314, allocations: 3.938 kB / 1.285 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.22e-05/0.3315, allocations: 19.84 kB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.3323, allocations: 304.9 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003163/0.3326, allocations: 263.5 kB / 1.285 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.3327, allocations: 15.69 kB / 1.285 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.3328, allocations: 99.86 kB / 1.285 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.333, allocations: 87.67 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.988e-05/0.3331, allocations: 24 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.204e-05/0.3331, allocations: 35.98 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.824e-05/0.3332, allocations: 15.92 kB / 1.285 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3333, allocations: 87.73 kB / 1.285 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.3336, allocations: 217.1 kB / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3336, allocations: 0 / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3336, allocations: 0 / 1.286 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.3336, allocations: 4 kB / 1.286 GB, free: 9.305 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.0006304/0.3342, allocations: 411.2 kB / 1.286 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3343, allocations: 12.03 kB / 1.286 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.3343, allocations: 34.73 kB / 1.286 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.3343, allocations: 16.89 kB / 1.286 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3345, allocations: 118.4 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.3345, allocations: 8.375 kB / 1.286 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.743e-05/0.3345, allocations: 16.36 kB / 1.286 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.3347, allocations: 61.92 kB / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.3347, allocations: 0 / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.3347, allocations: 4 kB / 1.286 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3347, allocations: 4 kB / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.756e-05/0.3347, allocations: 23.97 kB / 1.286 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.3353, allocations: 343.7 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.937e-05/0.3354, allocations: 30.52 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.798e-05/0.3354, allocations: 20.94 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.3354, allocations: 0 / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000202/0.3356, allocations: 99.34 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.3356, allocations: 3.938 kB / 1.287 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.000352/0.336, allocations: 149.8 kB / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.336, allocations: 59.44 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.3362, allocations: 133.8 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.3362, allocations: 29.7 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.3363, allocations: 104.1 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.3363, allocations: 19.97 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.3364, allocations: 65.67 kB / 1.287 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.3366, allocations: 326.8 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.3369, allocations: 173 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.3372, allocations: 235 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.3376, allocations: 246.9 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3376, allocations: 0 / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007505/0.3383, allocations: 468.1 kB / 1.289 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.748e-05/0.3384, allocations: 97.08 kB / 1.289 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3384, allocations: 8.188 kB / 1.289 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3384, allocations: 0 / 1.289 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.308e-05/0.3384, allocations: 8 kB / 1.289 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3385, allocations: 7.938 kB / 1.289 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/0.3389, allocations: 79.8 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.365e-05/0.339, allocations: 19.98 kB / 1.289 GB, free: 5.574 MB / 0.9825 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.0001351/0.3391, allocations: 133.8 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/0.3391, allocations: 7.953 kB / 1.289 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.3391, allocations: 12.38 kB / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3391, allocations: 0 / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3392, allocations: 0 / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3392, allocations: 0 / 1.289 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002024/0.3394, allocations: 160.6 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3394, allocations: 0 / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.44e-05/0.3394, allocations: 7.938 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3394, allocations: 4 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.3394, allocations: 4 kB / 1.289 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3394, allocations: 4 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3394, allocations: 0 / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.3396, allocations: 140.9 kB / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.566e-05/0.3396, allocations: 11.89 kB / 1.289 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3396, allocations: 7.938 kB / 1.289 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.066e-05/0.3397, allocations: 4.094 kB / 1.289 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.3397, allocations: 11.92 kB / 1.289 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.3397, allocations: 7.984 kB / 1.289 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.929e-05/0.3398, allocations: 97.23 kB / 1.289 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3398, allocations: 4 kB / 1.29 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002652/0.3401, allocations: 44 kB / 1.29 GB, free: 4.855 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: 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.0005865/0.3407, allocations: 0.6787 MB / 1.29 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005518/0.3412, allocations: 419.1 kB / 1.291 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3412, allocations: 0 / 1.291 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.724e-05/0.3413, allocations: 31.98 kB / 1.291 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.3416, allocations: 38 kB / 1.291 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.3448, allocations: 2.435 MB / 1.293 GB, free: 0.9648 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.127e-05/0.3449, allocations: 79.88 kB / 1.293 GB, free: 0.8633 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.495e-05/0.3449, allocations: 20.31 kB / 1.293 GB, free: 0.8438 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.345, allocations: 27.42 kB / 1.293 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of SimCode: time 6.21e-07/0.345, allocations: 0 / 1.293 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04025/0.3852, allocations: 4.688 MB / 1.298 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.69, allocations: 3.609 kB / 1.298 GB, free: 12.32 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.738707789219916]