Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.001697/0.001697, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002325/0.002325, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.542/1.542, allocations: 230.6 MB / 256 MB, free: 7.805 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.778/2.778, allocations: 476 MB / 0.7699 GB, free: 4.777 MB / 0.6231 GB " [Timeout remaining time 177] 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.Latch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.002293/0.002293, allocations: 65.12 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3764, allocations: 170 MB / 1.283 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002179/0.3786, allocations: 0.7481 MB / 1.283 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002035/0.3806, allocations: 1.266 MB / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.897e-05/0.3807, allocations: 4 kB / 1.285 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.362e-05/0.3807, allocations: 11.81 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.44e-05/0.3808, allocations: 11.86 kB / 1.285 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007563/0.3816, allocations: 256.8 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.3819, allocations: 259.6 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.382, allocations: 36.81 kB / 1.285 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.3822, allocations: 111.8 kB / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.3824, allocations: 83.67 kB / 1.285 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.44e-05/0.3824, allocations: 31.94 kB / 1.285 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.3825, allocations: 39.92 kB / 1.285 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.504e-05/0.3826, allocations: 31.91 kB / 1.285 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.3827, allocations: 91.73 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.3831, allocations: 244.9 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3831, allocations: 4 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3831, allocations: 0 / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.3831, allocations: 0 / 1.286 GB, free: 9.191 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007997/0.3839, allocations: 433.1 kB / 1.286 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.3839, allocations: 8.031 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.384, allocations: 46.73 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.124e-05/0.3841, allocations: 20.84 kB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.3847, allocations: 178.5 kB / 1.286 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.3847, allocations: 8.375 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.839e-05/0.3847, allocations: 24.38 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.385, allocations: 136.3 kB / 1.287 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.385, allocations: 0 / 1.287 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.3851, allocations: 4 kB / 1.287 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3851, allocations: 4 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.3852, allocations: 67.95 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.3859, allocations: 387.4 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.3861, allocations: 82.53 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.122e-05/0.3861, allocations: 28.84 kB / 1.287 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.3862, allocations: 11.94 kB / 1.287 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.3865, allocations: 131.2 kB / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.3865, allocations: 0 / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.00052/0.387, allocations: 247.2 kB / 1.287 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.3871, allocations: 55.39 kB / 1.288 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.3872, allocations: 144.3 kB / 1.288 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.3873, allocations: 29.7 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3874, allocations: 120.6 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.3874, allocations: 31.8 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3875, allocations: 69.67 kB / 1.288 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001947/0.3877, allocations: 326.8 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3879, allocations: 123.4 kB / 1.288 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.3882, allocations: 191 kB / 1.288 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3885, allocations: 215 kB / 1.289 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.3885, allocations: 8 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005675/0.3891, allocations: 383.2 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.907e-05/0.3891, allocations: 59.41 kB / 1.289 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.3891, allocations: 7.984 kB / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3891, allocations: 256 / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.221e-05/0.3892, allocations: 23.86 kB / 1.289 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3892, allocations: 4 kB / 1.289 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.3895, allocations: 55.83 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.3895, allocations: 19.98 kB / 1.289 GB, free: 5.254 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * 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.0001427/0.3897, allocations: 133.8 kB / 1.289 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.3897, allocations: 15.89 kB / 1.289 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.722e-05/0.3897, allocations: 16.77 kB / 1.289 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3897, allocations: 0 / 1.289 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3897, allocations: 0 / 1.289 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3897, allocations: 4 kB / 1.289 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005284/0.3903, allocations: 449.5 kB / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3903, allocations: 0 / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.543e-05/0.3903, allocations: 11.86 kB / 1.29 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3903, allocations: 0 / 1.29 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.3903, allocations: 4 kB / 1.29 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3903, allocations: 0 / 1.29 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3903, allocations: 4 kB / 1.29 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003528/0.3907, allocations: 303.2 kB / 1.29 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.415e-05/0.3907, allocations: 7.953 kB / 1.29 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.3907, allocations: 4 kB / 1.29 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.42e-05/0.3908, allocations: 7.984 kB / 1.29 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.3908, allocations: 11.98 kB / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.3908, allocations: 11.98 kB / 1.29 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.659e-05/0.3909, allocations: 99.27 kB / 1.29 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3909, allocations: 0 / 1.29 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003148/0.3912, allocations: 51.83 kB / 1.29 GB, free: 4.066 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: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0008009/0.392, allocations: 0.8375 MB / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005005/0.3925, allocations: 326 kB / 1.291 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3925, allocations: 0 / 1.291 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.3926, allocations: 55.91 kB / 1.291 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.393, allocations: 24.47 kB / 1.292 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.3957, allocations: 2.296 MB / 1.294 GB, free: 288 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.878e-05/0.3958, allocations: 94.77 kB / 1.294 GB, free: 172 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.598e-05/0.3958, allocations: 17.08 kB / 1.294 GB, free: 156 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.3959, allocations: 39.42 kB / 1.294 GB, free: 116 kB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.3959, allocations: 0 / 1.294 GB, free: 116 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.4277, allocations: 4.388 MB / 1.298 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.7, allocations: 17.66 kB / 1.298 GB, free: 11.88 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.46572687709704]