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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 111 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001972/0.001972, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.217/3.217, allocations: 497.2 MB / 0.7811 GB, free: 33.76 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 67.89 kB / 1.134 GB, free: 33.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3451, allocations: 173.9 MB / 1.304 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002439/0.3476, allocations: 0.7621 MB / 1.305 GB, free: 0.8008 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001914/0.3495, allocations: 1.26 MB / 1.306 GB, free: 15.53 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.069e-05/0.3496, allocations: 0 / 1.306 GB, free: 15.53 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.011e-05/0.3496, allocations: 19.8 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.103e-05/0.3497, allocations: 11.88 kB / 1.306 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.3504, allocations: 253.7 kB / 1.306 GB, free: 15.25 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.3508, allocations: 259.6 kB / 1.306 GB, free: 15 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.3509, allocations: 41.09 kB / 1.307 GB, free: 14.96 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.351, allocations: 99.8 kB / 1.307 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.3512, allocations: 115.6 kB / 1.307 GB, free: 14.75 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.3512, allocations: 24 kB / 1.307 GB, free: 14.72 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.338e-05/0.3513, allocations: 35.98 kB / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.3514, allocations: 39.83 kB / 1.307 GB, free: 14.65 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3515, allocations: 91.69 kB / 1.307 GB, free: 14.56 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.3518, allocations: 251.4 kB / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3518, allocations: 0 / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3518, allocations: 0 / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.3518, allocations: 0 / 1.307 GB, free: 14.31 MB / 1.014 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.0006433/0.3524, allocations: 0.4905 MB / 1.308 GB, free: 13.76 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3525, allocations: 12.92 kB / 1.308 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.995e-05/0.3525, allocations: 46.73 kB / 1.308 GB, free: 13.69 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.3526, allocations: 20.84 kB / 1.308 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005433/0.3531, allocations: 240.3 kB / 1.308 GB, free: 13.4 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.3532, allocations: 12.38 kB / 1.308 GB, free: 13.39 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.3532, allocations: 20.38 kB / 1.308 GB, free: 13.37 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.3535, allocations: 133.9 kB / 1.308 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3535, allocations: 4 kB / 1.308 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.3535, allocations: 0 / 1.308 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.3535, allocations: 4 kB / 1.308 GB, free: 13.22 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3536, allocations: 71.95 kB / 1.308 GB, free: 13.15 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.3543, allocations: 460.2 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.3546, allocations: 78.53 kB / 1.309 GB, free: 12.57 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.09e-05/0.3546, allocations: 40.84 kB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.3546, allocations: 3.938 kB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.3549, allocations: 129.4 kB / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.3549, allocations: 0 / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of matching and sorting (n=16): time 0.0004282/0.3553, allocations: 241.4 kB / 1.309 GB, free: 12.14 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.3554, allocations: 59.34 kB / 1.309 GB, free: 12.07 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.3555, allocations: 149.3 kB / 1.309 GB, free: 11.92 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.3555, allocations: 33.7 kB / 1.309 GB, free: 11.88 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.963e-05/0.3556, allocations: 116.6 kB / 1.309 GB, free: 11.76 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.3557, allocations: 31.78 kB / 1.309 GB, free: 11.73 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.3558, allocations: 73.67 kB / 1.31 GB, free: 11.65 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3559, allocations: 322.8 kB / 1.31 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.356, allocations: 63.97 kB / 1.31 GB, free: 11.27 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.3562, allocations: 131.6 kB / 1.31 GB, free: 11.11 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.3566, allocations: 217.2 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3566, allocations: 3.938 kB / 1.31 GB, free: 10.86 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004701/0.357, allocations: 316.8 kB / 1.311 GB, free: 10.53 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.3571, allocations: 67.41 kB / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3571, allocations: 0 / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3571, allocations: 4 kB / 1.311 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.799e-05/0.3571, allocations: 7.984 kB / 1.311 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3571, allocations: 7.938 kB / 1.311 GB, free: 10.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.3575, allocations: 63.81 kB / 1.311 GB, free: 10.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.3575, allocations: 20.05 kB / 1.311 GB, free: 10.35 MB / 1.014 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.0001363/0.3576, allocations: 138.4 kB / 1.311 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.3577, allocations: 19.78 kB / 1.311 GB, free: 10.18 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.3577, allocations: 16.83 kB / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3577, allocations: 0 / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3577, allocations: 0 / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3577, allocations: 0 / 1.311 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005009/0.3582, allocations: 486.3 kB / 1.311 GB, free: 9.633 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3582, allocations: 4 kB / 1.311 GB, free: 9.629 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.425e-05/0.3582, allocations: 7.938 kB / 1.311 GB, free: 9.621 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3582, allocations: 3.938 kB / 1.311 GB, free: 9.617 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3582, allocations: 4 kB / 1.311 GB, free: 9.613 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.3582, allocations: 3.984 kB / 1.311 GB, free: 9.609 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3582, allocations: 0 / 1.311 GB, free: 9.609 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000318/0.3586, allocations: 290 kB / 1.312 GB, free: 9.312 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.3586, allocations: 97.02 kB / 1.312 GB, free: 9.199 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.3586, allocations: 0 / 1.312 GB, free: 9.199 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.849e-05/0.3587, allocations: 3.984 kB / 1.312 GB, free: 9.195 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.3587, allocations: 15.98 kB / 1.312 GB, free: 9.18 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3588, allocations: 11.98 kB / 1.312 GB, free: 9.168 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.979e-05/0.3588, allocations: 99.27 kB / 1.312 GB, free: 9.07 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3588, allocations: 0 / 1.312 GB, free: 9.07 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002856/0.3591, allocations: 43.94 kB / 1.312 GB, free: 9.027 MB / 1.014 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.0006915/0.3598, allocations: 0.8342 MB / 1.313 GB, free: 8.168 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004139/0.3602, allocations: 268.1 kB / 1.313 GB, free: 7.883 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3602, allocations: 0 / 1.313 GB, free: 7.883 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 9.329e-05/0.3603, allocations: 60.41 kB / 1.313 GB, free: 7.824 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.3606, allocations: 29.8 kB / 1.313 GB, free: 7.797 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.3631, allocations: 2.055 MB / 1.315 GB, free: 5.598 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.3634, allocations: 0.7046 MB / 1.316 GB, free: 4.863 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.971e-05/0.3634, allocations: 13.08 kB / 1.316 GB, free: 4.848 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.3635, allocations: 39.42 kB / 1.316 GB, free: 4.812 MB / 1.014 GB Notification: Performance of SimCode: time 6.11e-07/0.3635, allocations: 0 / 1.316 GB, free: 4.812 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.3922, allocations: 3.615 MB / 1.319 GB, free: 1.32 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.15/8.542, allocations: 8.75 kB / 1.319 GB, free: 1.312 MB / 1.014 GB " [Timeout remaining time 291] (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_2/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: 15.2761539821513]