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.0008484/0.0008484, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001059/0.001059, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 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 0.893/0.893, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.633/1.633, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 0.9505 GB, free: 3.445 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.679e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.441 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001318/0.001335, allocations: 0.754 MB / 0.9513 GB, free: 2.68 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.00252, allocations: 1.264 MB / 0.9525 GB, free: 1.402 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.66e-05/0.002576, allocations: 0 / 0.9525 GB, free: 1.402 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.002612, allocations: 7.875 kB / 0.9525 GB, free: 1.395 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.002687, allocations: 31.72 kB / 0.9525 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.00325, allocations: 253.9 kB / 0.9528 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0003128/0.003563, allocations: 259.6 kB / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.003692, allocations: 37.08 kB / 0.9531 GB, free: 0.8281 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.003839, allocations: 151.8 kB / 0.9532 GB, free: 0.6797 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.003955, allocations: 75.8 kB / 0.9533 GB, free: 0.6055 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.003987, allocations: 24 kB / 0.9533 GB, free: 0.582 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.004059, allocations: 43.98 kB / 0.9533 GB, free: 0.5391 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 3.63e-05/0.004095, allocations: 35.89 kB / 0.9534 GB, free: 0.5039 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 6.953e-05/0.004165, allocations: 79.84 kB / 0.9534 GB, free: 436 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.004393, allocations: 283.2 kB / 0.9537 GB, free: 152 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.004395, allocations: 0 / 0.9537 GB, free: 152 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.292e-06/0.004396, allocations: 0 / 0.9537 GB, free: 152 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.0044, allocations: 3.938 kB / 0.9537 GB, free: 148 kB / 0.9011 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.000452/0.004852, allocations: 427.1 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.004888, allocations: 8.031 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.502e-05/0.004923, allocations: 46.73 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.004968, allocations: 16.89 kB / 0.9542 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.005315, allocations: 193.6 kB / 0.9544 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.005339, allocations: 16.36 kB / 0.9544 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.005374, allocations: 20.38 kB / 0.9544 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.005549, allocations: 126.1 kB / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.005559, allocations: 4.188 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.005572, allocations: 8.359 kB / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.005582, allocations: 7.938 kB / 0.9546 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.517e-05/0.005677, allocations: 63.95 kB / 0.9546 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.006133, allocations: 395.4 kB / 0.955 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.006263, allocations: 74.55 kB / 0.9551 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.131e-05/0.006304, allocations: 40.83 kB / 0.9551 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.00631, allocations: 0 / 0.9551 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.006498, allocations: 130.2 kB / 0.9552 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 1.132e-06/0.006499, allocations: 0 / 0.9552 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16): time 0.0003209/0.00682, allocations: 249.4 kB / 0.9555 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.006855, allocations: 59.41 kB / 0.9555 GB, free: 14.13 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.226e-05/0.006938, allocations: 141.6 kB / 0.9557 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.006961, allocations: 33.7 kB / 0.9557 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.007029, allocations: 112.7 kB / 0.9558 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.007052, allocations: 39.69 kB / 0.9558 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.007127, allocations: 69.67 kB / 0.9559 GB, free: 13.72 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.903e-05/0.007206, allocations: 314.8 kB / 0.9562 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.007331, allocations: 131.3 kB / 0.9563 GB, free: 13.26 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.007467, allocations: 191 kB / 0.9565 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.00763, allocations: 213.8 kB / 0.9567 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.007633, allocations: 0 / 0.9567 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003315/0.007964, allocations: 380.3 kB / 0.9571 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.008005, allocations: 75.33 kB / 0.9571 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.00801, allocations: 0 / 0.9571 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.008024, allocations: 7.984 kB / 0.9572 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.662e-05/0.008041, allocations: 4 kB / 0.9572 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.008048, allocations: 7.938 kB / 0.9572 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.008221, allocations: 59.83 kB / 0.9572 GB, free: 12.22 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.008242, allocations: 16.02 kB / 0.9572 GB, free: 12.21 MB / 0.9167 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 9.589e-05/0.008338, allocations: 147.7 kB / 0.9574 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.008351, allocations: 7.953 kB / 0.9574 GB, free: 12.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.468e-05/0.008376, allocations: 20.66 kB / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.008378, allocations: 0 / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.008382, allocations: 0 / 0.9574 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.008386, allocations: 3.938 kB / 0.9574 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.008699, allocations: 457.4 kB / 0.9578 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.008701, allocations: 0 / 0.9578 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-06/0.008708, allocations: 11.94 kB / 0.9579 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.008709, allocations: 0 / 0.9579 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.00872, allocations: 11.98 kB / 0.9579 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.008721, allocations: 0 / 0.9579 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.008722, allocations: 0 / 0.9579 GB, free: 11.5 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.008913, allocations: 287.4 kB / 0.9581 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-06/0.008922, allocations: 11.89 kB / 0.9582 GB, free: 11.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.008936, allocations: 7.984 kB / 0.9582 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.434e-05/0.008971, allocations: 0 / 0.9582 GB, free: 11.19 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.009008, allocations: 19.97 kB / 0.9582 GB, free: 11.17 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.009024, allocations: 12 kB / 0.9582 GB, free: 11.16 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.828e-05/0.009063, allocations: 102.1 kB / 0.9583 GB, free: 11.06 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.009063, allocations: 0 / 0.9583 GB, free: 11.06 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002186/0.009281, allocations: 51.94 kB / 0.9583 GB, free: 11.01 MB / 0.9167 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.000394/0.009675, allocations: 0.8284 MB / 0.9591 GB, free: 10.16 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002867/0.009962, allocations: 337.9 kB / 0.9595 GB, free: 9.789 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.009963, allocations: 8.438 kB / 0.9595 GB, free: 9.781 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.039e-05/0.01002, allocations: 55.91 kB / 0.9595 GB, free: 9.727 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.01024, allocations: 23.98 kB / 0.9596 GB, free: 9.703 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.01185, allocations: 2.287 MB / 0.9618 GB, free: 7.223 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.993e-05/0.01191, allocations: 98.77 kB / 0.9619 GB, free: 7.109 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.96e-05/0.01194, allocations: 13.14 kB / 0.9619 GB, free: 7.098 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.01198, allocations: 40.48 kB / 0.9619 GB, free: 7.059 MB / 0.9167 GB Notification: Performance of SimCode: time 4.81e-07/0.01198, allocations: 0 / 0.9619 GB, free: 7.059 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01606/0.02804, allocations: 4.495 MB / 0.9663 GB, free: 2.734 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.885/6.913, allocations: 9.969 kB / 0.9663 GB, free: 2.727 MB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/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: 10.83501403592527]