Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001405/0.001405, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001683/0.001683, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.524/1.524, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.275/3.275, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_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.002099/0.002099, allocations: 71.92 kB / 1.186 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.394, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002258/0.3963, allocations: 0.7542 MB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.3982, allocations: 1.253 MB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.3982, allocations: 4 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.532e-05/0.3983, allocations: 11.86 kB / 1.365 GB, free: 12.06 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.848e-05/0.3984, allocations: 15.81 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.3991, allocations: 256.8 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.3995, allocations: 251.7 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.3997, allocations: 37.28 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.3999, allocations: 103.8 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.4001, allocations: 91.66 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.4001, allocations: 24 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.4002, allocations: 36 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.4003, allocations: 31.89 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.4004, allocations: 95.69 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.4007, allocations: 247.4 kB / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4007, allocations: 0 / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.993e-06/0.4007, allocations: 0 / 1.367 GB, free: 10.89 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.4007, allocations: 0 / 1.367 GB, free: 10.89 MB / 1.061 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.0007273/0.4015, allocations: 421.2 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.4015, allocations: 8.031 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.163e-05/0.4016, allocations: 42.73 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.4017, allocations: 16.89 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000594/0.4023, allocations: 190.5 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.4023, allocations: 16.31 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.4024, allocations: 20.38 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.4026, allocations: 116.1 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.4026, allocations: 0 / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.4026, allocations: 0 / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.4026, allocations: 4 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001269/0.4028, allocations: 55.95 kB / 1.367 GB, free: 9.941 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007511/0.4035, allocations: 411.5 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.4038, allocations: 122.7 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.969e-05/0.4039, allocations: 56.83 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.4039, allocations: 0 / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.4043, allocations: 183.2 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of pre-optimization done (n=32): time 1.683e-06/0.4043, allocations: 0 / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of matching and sorting (n=32): time 0.0006118/0.4049, allocations: 318 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.405, allocations: 75.33 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.4051, allocations: 155.5 kB / 1.369 GB, free: 8.555 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.4052, allocations: 45.64 kB / 1.369 GB, free: 8.504 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.4053, allocations: 105 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/0.4054, allocations: 71.45 kB / 1.369 GB, free: 8.324 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.4056, allocations: 109.9 kB / 1.369 GB, free: 8.207 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4057, allocations: 330.8 kB / 1.369 GB, free: 7.875 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.406, allocations: 168.2 kB / 1.369 GB, free: 7.695 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003051/0.4063, allocations: 225 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.4067, allocations: 287.5 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4068, allocations: 0 / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007547/0.4075, allocations: 485.7 kB / 1.37 GB, free: 6.621 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.111e-05/0.4076, allocations: 67.39 kB / 1.37 GB, free: 6.543 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.4076, allocations: 192 / 1.37 GB, free: 6.543 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.4076, allocations: 11.94 kB / 1.37 GB, free: 6.531 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.364e-05/0.4077, allocations: 19.92 kB / 1.37 GB, free: 6.512 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.4077, allocations: 7.938 kB / 1.37 GB, free: 6.504 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.408, allocations: 63.78 kB / 1.371 GB, free: 6.441 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.4081, allocations: 23.98 kB / 1.371 GB, free: 6.418 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,tru.y,fal.y,truCleTruIni.clr,truCleFalIni.clr,falCleTruIni.clr,falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,$PRE.swiCleInp1.y,swiCleInp1.clr,swiCleInp1.u,swiCleInp.y,$PRE.swiCleInp.y,swiCleInp.clr,swiCleInp.u,truCleFalIni.y,$PRE.truCleFalIni.y,truCleFalIni.u,falCleFalIni.y,$PRE.falCleFalIni.y,falCleFalIni.u,truCleTruIni.y,$PRE.truCleTruIni.y,truCleTruIni.u,falCleTruIni.y,$PRE.falCleTruIni.y,falCleTruIni.u,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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.000179/0.4083, allocations: 158.8 kB / 1.371 GB, free: 6.258 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.4083, allocations: 15.91 kB / 1.371 GB, free: 6.242 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.079e-05/0.4084, allocations: 21.95 kB / 1.371 GB, free: 6.219 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.4084, allocations: 7.938 kB / 1.371 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4084, allocations: 0 / 1.371 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4084, allocations: 0 / 1.371 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008877/0.4093, allocations: 0.5835 MB / 1.371 GB, free: 5.578 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4093, allocations: 4 kB / 1.371 GB, free: 5.574 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.605e-05/0.4093, allocations: 11.92 kB / 1.371 GB, free: 5.562 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.4093, allocations: 0 / 1.371 GB, free: 5.562 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.4093, allocations: 8 kB / 1.371 GB, free: 5.555 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.4094, allocations: 0 / 1.371 GB, free: 5.555 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4094, allocations: 0 / 1.371 GB, free: 5.555 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.4098, allocations: 372.1 kB / 1.372 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.4099, allocations: 15.84 kB / 1.372 GB, free: 5.16 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.4099, allocations: 11.94 kB / 1.372 GB, free: 5.148 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.757e-05/0.41, allocations: 3.984 kB / 1.372 GB, free: 5.145 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.41, allocations: 19.97 kB / 1.372 GB, free: 5.125 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.4101, allocations: 19.98 kB / 1.372 GB, free: 5.105 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.847e-05/0.4101, allocations: 113.3 kB / 1.372 GB, free: 4.996 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4101, allocations: 0 / 1.372 GB, free: 4.996 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003463/0.4105, allocations: 56 kB / 1.372 GB, free: 4.941 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (swiCleInp1.clr,swiCleInp.clr,truCleFalIni.u,swiCleInp1.u,swiCleInp.u,truCleTruIni.u,falCleTruIni.u,falCleFalIni.u,$whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$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 (32): * Single equations (assignments): 24 * 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.0009513/0.4114, allocations: 0.9061 MB / 1.373 GB, free: 4.012 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006399/0.4121, allocations: 414.6 kB / 1.373 GB, free: 3.57 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4121, allocations: 384 / 1.373 GB, free: 3.57 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.4122, allocations: 91.84 kB / 1.373 GB, free: 3.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4126, allocations: 31.92 kB / 1.373 GB, free: 3.449 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/0.4159, allocations: 2.667 MB / 1.376 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.416, allocations: 115.5 kB / 1.376 GB, free: 480 kB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.309e-05/0.4161, allocations: 26.23 kB / 1.376 GB, free: 452 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.4162, allocations: 47.42 kB / 1.376 GB, free: 404 kB / 1.061 GB Notification: Performance of SimCode: time 8.01e-07/0.4162, allocations: 0 / 1.376 GB, free: 404 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03532/0.4515, allocations: 5.258 MB / 1.381 GB, free: 11.3 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.03, allocations: 2.406 kB / 1.381 GB, free: 11.3 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.932593075092882]