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.001918/0.001918, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001785/0.001785, allocations: 216 kB / 22.25 MB, free: 5.105 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.444/1.444, allocations: 230.6 MB / 256 MB, free: 7.797 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.223/3.223, allocations: 0.49 GB / 0.7951 GB, free: 35.45 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.002023/0.002023, allocations: 65.73 kB / 1.154 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3485, allocations: 176.1 MB / 1.326 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002095/0.3506, allocations: 0.6913 MB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001728/0.3523, allocations: 1.28 MB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.228e-05/0.3524, allocations: 4 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.182e-05/0.3524, allocations: 7.875 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.882e-05/0.3525, allocations: 19.86 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008932/0.3534, allocations: 308.3 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.3537, allocations: 267.5 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.3538, allocations: 8.188 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.354, allocations: 99.86 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.3541, allocations: 95.73 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.3542, allocations: 24 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.12e-05/0.3543, allocations: 32 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.192e-05/0.3543, allocations: 15.92 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3544, allocations: 83.8 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002838/0.3547, allocations: 223.6 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3547, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3547, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3547, allocations: 4 kB / 1.329 GB, free: 14.34 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.0006273/0.3554, allocations: 423 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3554, allocations: 12.03 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.893e-05/0.3554, allocations: 38.67 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.36e-05/0.3555, allocations: 12.94 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.3556, allocations: 118.4 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3557, allocations: 8.375 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.3557, allocations: 16.36 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.3558, allocations: 57.98 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3559, allocations: 0 / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3559, allocations: 4 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3559, allocations: 4 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.553e-05/0.3559, allocations: 23.92 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/0.3565, allocations: 343.7 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 7.865e-05/0.3566, allocations: 26.58 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.07e-05/0.3566, allocations: 24.94 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.3566, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.3568, allocations: 107.3 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.296e-05/0.3568, allocations: 3.984 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000322/0.3571, allocations: 145.5 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.3572, allocations: 55.41 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.3573, allocations: 132.4 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.3574, allocations: 29.7 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.814e-05/0.3575, allocations: 104.1 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.3575, allocations: 23.8 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.3576, allocations: 65.67 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3578, allocations: 326.8 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.358, allocations: 173 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.3583, allocations: 239 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.3586, allocations: 232.9 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3586, allocations: 0 / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007619/0.3594, allocations: 471.5 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.066e-05/0.3595, allocations: 101.1 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3595, allocations: 12.12 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3595, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.373e-05/0.3595, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3596, allocations: 8 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.36, allocations: 79.8 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.3601, allocations: 23.97 kB / 1.332 GB, free: 10.6 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.0001387/0.3602, allocations: 135.3 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.3602, allocations: 7.953 kB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.3603, allocations: 12.38 kB / 1.332 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3603, allocations: 0 / 1.332 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3603, allocations: 0 / 1.332 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3603, allocations: 3.984 kB / 1.332 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.3604, allocations: 156.7 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3604, allocations: 0 / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.199e-05/0.3605, allocations: 4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.3605, allocations: 4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3605, allocations: 4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3605, allocations: 4 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3605, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.3607, allocations: 140.9 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.3607, allocations: 19.89 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3607, allocations: 0 / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.732e-05/0.3607, allocations: 7.984 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.735e-05/0.3608, allocations: 7.984 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.3608, allocations: 4 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.353e-05/0.3609, allocations: 95.27 kB / 1.333 GB, free: 9.934 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3609, allocations: 4 kB / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002633/0.3611, allocations: 51.88 kB / 1.333 GB, free: 9.879 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.0005896/0.3617, allocations: 0.6848 MB / 1.334 GB, free: 9.168 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005147/0.3622, allocations: 411.2 kB / 1.334 GB, free: 8.711 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3622, allocations: 0 / 1.334 GB, free: 8.711 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.139e-05/0.3623, allocations: 35.92 kB / 1.334 GB, free: 8.676 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.3626, allocations: 29.38 kB / 1.334 GB, free: 8.648 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.3654, allocations: 2.434 MB / 1.336 GB, free: 6.004 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.149e-05/0.3655, allocations: 75.89 kB / 1.336 GB, free: 5.906 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.549e-05/0.3655, allocations: 8.438 kB / 1.336 GB, free: 5.898 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.997e-05/0.3656, allocations: 31.42 kB / 1.336 GB, free: 5.867 MB / 1.029 GB Notification: Performance of SimCode: time 6.72e-07/0.3656, allocations: 0 / 1.336 GB, free: 5.867 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03317/0.3988, allocations: 4.714 MB / 1.341 GB, free: 1.34 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.67, allocations: 0 / 1.341 GB, free: 1.34 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.46849563199794]