Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00167/0.00167, allocations: 107.8 kB / 16.45 MB, free: 6.453 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.001951/0.001951, allocations: 213.7 kB / 19.43 MB, free: 3.625 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 / 252.8 MB, free: 8.938 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.142/3.142, allocations: 0.49 GB / 0.7916 GB, free: 33.53 MB / 0.6231 GB " [Timeout remaining time 177] 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.Latch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_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.002092/0.002092, allocations: 73.39 kB / 1.149 GB, free: 26.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3756, allocations: 176.1 MB / 1.321 GB, free: 3.27 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002866/0.3785, allocations: 0.7795 MB / 1.322 GB, free: 2.492 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002155/0.3806, allocations: 1.283 MB / 1.323 GB, free: 1.195 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.3807, allocations: 0 / 1.323 GB, free: 1.195 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.823e-05/0.3808, allocations: 11.81 kB / 1.323 GB, free: 1.184 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.3809, allocations: 23.84 kB / 1.323 GB, free: 1.16 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009559/0.3818, allocations: 249.5 kB / 1.323 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.3823, allocations: 259.6 kB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.3825, allocations: 41.11 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/0.3827, allocations: 103.8 kB / 1.323 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.383, allocations: 99.67 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.383, allocations: 24 kB / 1.324 GB, free: 412 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.3831, allocations: 39.98 kB / 1.324 GB, free: 372 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.157e-05/0.3832, allocations: 35.91 kB / 1.324 GB, free: 336 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.3834, allocations: 95.66 kB / 1.324 GB, free: 240 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003949/0.3838, allocations: 247.5 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3838, allocations: 0 / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3838, allocations: 4 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.3838, allocations: 3.938 kB / 1.324 GB, free: 15.98 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000787/0.3846, allocations: 0.4944 MB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3846, allocations: 15.98 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.194e-05/0.3847, allocations: 42.73 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.006e-05/0.3848, allocations: 20.84 kB / 1.325 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.3854, allocations: 240.2 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.3854, allocations: 20.36 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.3855, allocations: 16.38 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.3857, allocations: 141.4 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3857, allocations: 0 / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.3858, allocations: 0 / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.3858, allocations: 4 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.3859, allocations: 75.89 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007197/0.3866, allocations: 452.2 kB / 1.325 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.3868, allocations: 86.53 kB / 1.326 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.462e-05/0.3869, allocations: 32.83 kB / 1.326 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.3869, allocations: 3.938 kB / 1.326 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.3871, allocations: 131.2 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.833e-06/0.3872, allocations: 0 / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.00058/0.3877, allocations: 245.4 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.3878, allocations: 55.41 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.3879, allocations: 142.7 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.388, allocations: 29.7 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.3881, allocations: 120.6 kB / 1.326 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.875e-05/0.3882, allocations: 27.8 kB / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.3883, allocations: 65.69 kB / 1.326 GB, free: 13.33 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3885, allocations: 326.8 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.3886, allocations: 71.95 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.3888, allocations: 131.2 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.3892, allocations: 217.9 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3892, allocations: 0 / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005763/0.3897, allocations: 328.5 kB / 1.327 GB, free: 12.19 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.734e-05/0.3898, allocations: 67.39 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3898, allocations: 8 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.308e-05/0.3899, allocations: 4 kB / 1.327 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-05/0.3899, allocations: 7.938 kB / 1.327 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.3899, allocations: 3.984 kB / 1.327 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.3903, allocations: 68.08 kB / 1.328 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.3903, allocations: 12 kB / 1.328 GB, free: 12.01 MB / 1.029 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.0001547/0.3905, allocations: 137.8 kB / 1.328 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.3905, allocations: 15.89 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.031e-05/0.3905, allocations: 8.844 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3905, allocations: 0 / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3905, allocations: 4 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3905, allocations: 7.984 kB / 1.328 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.3911, allocations: 478.4 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3911, allocations: 3.938 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.649e-05/0.3911, allocations: 7.984 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3912, allocations: 0 / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3912, allocations: 4 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3912, allocations: 4 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3912, allocations: 0 / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003675/0.3915, allocations: 293.5 kB / 1.328 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.3916, allocations: 89.05 kB / 1.329 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.3916, allocations: 7.984 kB / 1.329 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.217e-05/0.3917, allocations: 7.984 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.3917, allocations: 11.98 kB / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.3918, allocations: 8 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.846e-05/0.3918, allocations: 103.7 kB / 1.329 GB, free: 10.74 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3918, allocations: 0 / 1.329 GB, free: 10.74 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000332/0.3922, allocations: 59.81 kB / 1.329 GB, free: 10.68 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: 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.0007973/0.393, allocations: 0.8294 MB / 1.33 GB, free: 9.828 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004549/0.3934, allocations: 265 kB / 1.33 GB, free: 9.547 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3934, allocations: 4.062 kB / 1.33 GB, free: 9.543 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.3935, allocations: 55.91 kB / 1.33 GB, free: 9.488 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.3939, allocations: 27.97 kB / 1.33 GB, free: 9.461 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.3968, allocations: 2.052 MB / 1.332 GB, free: 7.266 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.3971, allocations: 0.7046 MB / 1.333 GB, free: 6.535 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.761e-05/0.3972, allocations: 13.08 kB / 1.333 GB, free: 6.523 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.886e-05/0.3973, allocations: 39.42 kB / 1.333 GB, free: 6.484 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.3973, allocations: 4 kB / 1.333 GB, free: 6.48 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.4258, allocations: 3.611 MB / 1.336 GB, free: 2.973 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.652, allocations: 0.7031 kB / 1.336 GB, free: 2.973 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.29251978197135]