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.001311/0.001311, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001433/0.001433, allocations: 218.1 kB / 22.24 MB, free: 5.258 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.809 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.2/3.2, allocations: 0.49 GB / 0.7951 GB, free: 35.42 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.00203/0.00203, allocations: 71.89 kB / 1.154 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3475, allocations: 176.1 MB / 1.326 GB, free: 1.496 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002418/0.3499, allocations: 0.6821 MB / 1.327 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002004/0.3519, allocations: 1.284 MB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.616e-05/0.352, allocations: 0 / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.352, allocations: 7.938 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.3521, allocations: 23.8 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.3532, allocations: 300.5 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.3536, allocations: 259.6 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3537, allocations: 16.17 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.3539, allocations: 103.8 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.3541, allocations: 91.75 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.462e-05/0.3542, allocations: 27.94 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3543, allocations: 35.98 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.388e-05/0.3543, allocations: 19.91 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.3544, allocations: 75.88 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.3548, allocations: 227.6 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3548, allocations: 4 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3548, allocations: 0 / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.185e-05/0.3548, allocations: 0 / 1.329 GB, free: 14.36 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.0006908/0.3555, allocations: 419.1 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3555, allocations: 8.031 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.925e-05/0.3556, allocations: 34.75 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.835e-05/0.3556, allocations: 8.938 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.3558, allocations: 126.4 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.3558, allocations: 8.375 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.3558, allocations: 16.36 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.356, allocations: 61.98 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.356, allocations: 0 / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.356, allocations: 3.984 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.356, allocations: 4 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.657e-05/0.3561, allocations: 20 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/0.3567, allocations: 351.6 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.486e-05/0.3568, allocations: 30.56 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.768e-05/0.3568, allocations: 16.86 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.3568, allocations: 4.078 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002318/0.357, allocations: 99.25 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.357, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003388/0.3574, allocations: 145.5 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.3574, allocations: 55.41 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3576, allocations: 134.2 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.3576, allocations: 33.7 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.643e-05/0.3577, allocations: 96.09 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.3577, allocations: 23.92 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.3579, allocations: 77.59 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.358, allocations: 318.8 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.3583, allocations: 177 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.3585, allocations: 231.4 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.3588, allocations: 242.9 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3588, allocations: 3.984 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000674/0.3595, allocations: 463.6 kB / 1.332 GB, free: 10.87 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.425e-05/0.3596, allocations: 101.1 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3596, allocations: 7.984 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.3596, allocations: 8.188 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.863e-05/0.3597, allocations: 7.938 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3597, allocations: 0 / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.3601, allocations: 79.8 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.3602, allocations: 23.98 kB / 1.332 GB, free: 10.63 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.000147/0.3603, allocations: 131.3 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.3603, allocations: 11.94 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.037e-05/0.3604, allocations: 8.375 kB / 1.332 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3604, allocations: 4 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3604, allocations: 3.938 kB / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3604, allocations: 0 / 1.332 GB, free: 10.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.3606, allocations: 156.7 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3606, allocations: 0 / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.408e-05/0.3606, allocations: 4 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.3606, allocations: 3.984 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.3606, allocations: 8 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3606, allocations: 0 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3606, allocations: 80 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.3608, allocations: 140.9 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.3609, allocations: 23.88 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.3609, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.323e-05/0.3609, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.361, allocations: 11.98 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.361, allocations: 4 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.02e-05/0.361, allocations: 97.66 kB / 1.333 GB, free: 9.961 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.361, allocations: 96 / 1.333 GB, free: 9.961 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000271/0.3613, allocations: 55.92 kB / 1.333 GB, free: 9.906 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.0005804/0.3619, allocations: 0.6787 MB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005411/0.3624, allocations: 415.1 kB / 1.334 GB, free: 8.738 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3624, allocations: 0 / 1.334 GB, free: 8.738 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.664e-05/0.3625, allocations: 39.86 kB / 1.334 GB, free: 8.699 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.3628, allocations: 24.36 kB / 1.334 GB, free: 8.676 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.3658, allocations: 2.442 MB / 1.336 GB, free: 6.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.428e-05/0.3659, allocations: 75.89 kB / 1.336 GB, free: 5.926 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.366, allocations: 12.42 kB / 1.336 GB, free: 5.914 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.366, allocations: 31.7 kB / 1.336 GB, free: 5.883 MB / 1.029 GB Notification: Performance of SimCode: time 1.142e-06/0.366, allocations: 0 / 1.336 GB, free: 5.883 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.3979, allocations: 4.714 MB / 1.341 GB, free: 1.355 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.56, allocations: 10.84 kB / 1.341 GB, free: 1.352 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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] "Error: Could not read variable logicalSwitch.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.45280540100066]