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.001952/0.001952, 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.002534/0.002534, allocations: 218.4 kB / 22.25 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.996 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 3.011/3.011, allocations: 476.7 MB / 0.7707 GB, free: 4.25 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.002933/0.002933, allocations: 64.48 kB / 1.117 GB, free: 40.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3614, allocations: 170 MB / 1.283 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001924/0.3634, allocations: 0.6993 MB / 1.284 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.365, allocations: 1.309 MB / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.3651, allocations: 0 / 1.285 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.3651, allocations: 7.875 kB / 1.285 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.899e-05/0.3652, allocations: 19.84 kB / 1.285 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008169/0.366, allocations: 308.1 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.3663, allocations: 255.6 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.617e-05/0.3664, allocations: 12.17 kB / 1.286 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.3666, allocations: 107.8 kB / 1.286 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.3667, allocations: 91.75 kB / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.3668, allocations: 24 kB / 1.286 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.638e-05/0.3669, allocations: 35.98 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.3669, allocations: 11.98 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.367, allocations: 87.73 kB / 1.286 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.3673, allocations: 218.9 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3673, allocations: 4 kB / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3673, allocations: 0 / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.3673, allocations: 0 / 1.286 GB, free: 8.57 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.0005821/0.3679, allocations: 423.1 kB / 1.287 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3679, allocations: 8.031 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.3679, allocations: 34.73 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.72e-05/0.368, allocations: 16.89 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.3681, allocations: 118.4 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.3681, allocations: 16.31 kB / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.3682, allocations: 16.36 kB / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/0.3683, allocations: 61.98 kB / 1.287 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3683, allocations: 4 kB / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.3683, allocations: 0 / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3683, allocations: 0 / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.698e-05/0.3684, allocations: 27.98 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005634/0.3689, allocations: 383.5 kB / 1.288 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.487e-05/0.369, allocations: 34.56 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.66e-05/0.3691, allocations: 24.8 kB / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-06/0.3691, allocations: 0 / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.3693, allocations: 103.4 kB / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.3693, allocations: 4 kB / 1.288 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003283/0.3696, allocations: 141.5 kB / 1.288 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.3697, allocations: 51.41 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3698, allocations: 136.6 kB / 1.288 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.3699, allocations: 29.7 kB / 1.288 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.73e-05/0.37, allocations: 104.1 kB / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.37, allocations: 19.84 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.3701, allocations: 65.67 kB / 1.288 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3703, allocations: 326.8 kB / 1.289 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.3705, allocations: 87.91 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.3707, allocations: 139.3 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.371, allocations: 250.1 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.371, allocations: 0 / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006269/0.3716, allocations: 374.5 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.513e-05/0.3717, allocations: 105.1 kB / 1.289 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3717, allocations: 4.078 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3718, allocations: 384 / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.566e-05/0.3718, allocations: 7.938 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.3718, allocations: 8.172 kB / 1.289 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/0.3723, allocations: 79.86 kB / 1.29 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.3723, allocations: 23.92 kB / 1.29 GB, free: 5.098 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.0001323/0.3724, allocations: 140.3 kB / 1.29 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/0.3724, allocations: 11.95 kB / 1.29 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.3725, allocations: 8.375 kB / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3725, allocations: 0 / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3725, allocations: 4 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3725, allocations: 0 / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.3726, allocations: 168.6 kB / 1.29 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3726, allocations: 0 / 1.29 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.768e-06/0.3727, allocations: 0 / 1.29 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.3727, allocations: 4 kB / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.3727, allocations: 0 / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3727, allocations: 4 kB / 1.29 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3727, allocations: 3.938 kB / 1.29 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.3729, allocations: 144.9 kB / 1.29 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.684e-05/0.3729, allocations: 7.953 kB / 1.29 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.3729, allocations: 4 kB / 1.29 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.787e-05/0.3729, allocations: 7.984 kB / 1.29 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.373, allocations: 7.984 kB / 1.29 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-06/0.373, allocations: 4 kB / 1.29 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.611e-05/0.373, allocations: 103.3 kB / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.373, allocations: 0 / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000274/0.3733, allocations: 44 kB / 1.29 GB, free: 4.375 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.0005636/0.3739, allocations: 0.6786 MB / 1.291 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000475/0.3743, allocations: 330.2 kB / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3743, allocations: 0 / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.416e-05/0.3744, allocations: 35.92 kB / 1.291 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.3747, allocations: 23.91 kB / 1.291 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.3773, allocations: 2.076 MB / 1.293 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3776, allocations: 0.6924 MB / 1.294 GB, free: 320 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.335e-05/0.3776, allocations: 8.438 kB / 1.294 GB, free: 312 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.44e-05/0.3777, allocations: 27.42 kB / 1.294 GB, free: 284 kB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.3777, allocations: 0 / 1.294 GB, free: 284 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.4118, allocations: 3.973 MB / 1.298 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.46, allocations: 3.984 kB / 1.298 GB, free: 12.46 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.523945522028953]