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.001793/0.001793, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002158/0.002158, allocations: 215 kB / 20.13 MB, free: 2.949 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.526/1.526, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.985/2.985, allocations: 0.5003 GB / 0.8026 GB, free: 6.73 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="cs",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.00203/0.00203, allocations: 63.91 kB / 1.165 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9282/0.9302, allocations: 178.9 MB / 1.34 GB, free: 16.29 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002416/0.9326, allocations: 0.7689 MB / 1.341 GB, free: 15.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001722/0.9343, allocations: 1.276 MB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.412e-05/0.9344, allocations: 1.344 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.521e-05/0.9345, allocations: 15.62 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.312e-05/0.9345, allocations: 14.95 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006772/0.9352, allocations: 265.2 kB / 1.342 GB, free: 14.71 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.9355, allocations: 255 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.9356, allocations: 40.83 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.9358, allocations: 103.1 kB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.936, allocations: 106.5 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.936, allocations: 25.03 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.545e-05/0.9361, allocations: 33.53 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.437e-05/0.9361, allocations: 35.7 kB / 1.343 GB, free: 14.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.9363, allocations: 103 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.9366, allocations: 250.7 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.9366, allocations: 4 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9366, allocations: 0 / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.9366, allocations: 0 / 1.343 GB, free: 14.32 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.0006492/0.9373, allocations: 0.5018 MB / 1.344 GB, free: 13.84 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.9373, allocations: 8.938 kB / 1.344 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.746e-05/0.9374, allocations: 3.75 kB / 1.344 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.9374, allocations: 46.38 kB / 1.344 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.899e-05/0.9375, allocations: 17.41 kB / 1.344 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.938, allocations: 244.4 kB / 1.344 GB, free: 13.56 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.938, allocations: 14.55 kB / 1.344 GB, free: 13.56 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.938, allocations: 22.61 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.9383, allocations: 130.7 kB / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.9383, allocations: 0 / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.9383, allocations: 3.297 kB / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.9383, allocations: 2.75 kB / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.9385, allocations: 74.28 kB / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.939, allocations: 458.8 kB / 1.345 GB, free: 13.12 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.9392, allocations: 80.34 kB / 1.345 GB, free: 13.07 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.526e-05/0.9392, allocations: 41.17 kB / 1.345 GB, free: 13.05 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.9392, allocations: 1.375 kB / 1.345 GB, free: 13.05 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002818/0.9395, allocations: 134.5 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.9395, allocations: 1.969 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.0004862/0.94, allocations: 243 kB / 1.345 GB, free: 12.88 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.94, allocations: 54.78 kB / 1.345 GB, free: 12.82 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.9402, allocations: 138.7 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.9402, allocations: 37.2 kB / 1.346 GB, free: 12.66 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.23e-05/0.9403, allocations: 112.1 kB / 1.346 GB, free: 12.56 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.9403, allocations: 40.12 kB / 1.346 GB, free: 12.53 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.9404, allocations: 68.75 kB / 1.346 GB, free: 12.5 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.495e-05/0.9404, allocations: 320.5 kB / 1.346 GB, free: 12.18 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.9406, allocations: 67.88 kB / 1.346 GB, free: 12.16 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.9408, allocations: 131.9 kB / 1.346 GB, free: 12.06 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.941, allocations: 216 kB / 1.346 GB, free: 11.88 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.941, allocations: 1.406 kB / 1.346 GB, free: 11.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000476/0.9415, allocations: 311.2 kB / 1.347 GB, free: 11.71 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/0.9415, allocations: 68.12 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.9415, allocations: 1.375 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.9415, allocations: 4.125 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.809e-05/0.9416, allocations: 17.77 kB / 1.347 GB, free: 11.63 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.9416, allocations: 7.391 kB / 1.347 GB, free: 11.62 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.9419, allocations: 60.97 kB / 1.347 GB, free: 11.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.9419, allocations: 14.62 kB / 1.347 GB, free: 11.61 MB / 1.061 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.0001208/0.9421, allocations: 143.4 kB / 1.347 GB, free: 11.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.983e-05/0.9421, allocations: 14.06 kB / 1.347 GB, free: 11.47 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.9421, allocations: 11.48 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.9421, allocations: 2.75 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.9421, allocations: 0.6094 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9421, allocations: 0.6094 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004146/0.9425, allocations: 490.1 kB / 1.348 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9425, allocations: 5.281 kB / 1.348 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-05/0.9425, allocations: 1.828 kB / 1.348 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.9426, allocations: 2.047 kB / 1.348 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.9426, allocations: 8.625 kB / 1.348 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.9426, allocations: 5.438 kB / 1.348 GB, free: 11.08 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.9426, allocations: 0 / 1.348 GB, free: 11.08 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.9428, allocations: 291.8 kB / 1.348 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.135e-05/0.9429, allocations: 85.78 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.9429, allocations: 3.188 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.046e-05/0.9429, allocations: 4.328 kB / 1.348 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.943, allocations: 18.61 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.943, allocations: 9.562 kB / 1.348 GB, free: 10.79 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.129e-05/0.9431, allocations: 105.9 kB / 1.348 GB, free: 10.71 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9431, allocations: 0 / 1.348 GB, free: 10.71 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003057/0.9434, allocations: 52.33 kB / 1.348 GB, free: 10.7 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: 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.0004784/0.9438, allocations: 0.8259 MB / 1.349 GB, free: 9.984 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003753/0.9442, allocations: 268.5 kB / 1.349 GB, free: 9.809 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.9442, allocations: 0 / 1.349 GB, free: 9.809 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.478e-05/0.9443, allocations: 63.06 kB / 1.349 GB, free: 9.789 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.9446, allocations: 28.64 kB / 1.349 GB, free: 9.781 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.9466, allocations: 2.056 MB / 1.351 GB, free: 8.125 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.9467, allocations: 0.7164 MB / 1.352 GB, free: 7.422 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.976e-05/0.9467, allocations: 10.5 kB / 1.352 GB, free: 7.418 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.842e-05/0.9468, allocations: 38.17 kB / 1.352 GB, free: 7.395 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.9468, allocations: 0 / 1.352 GB, free: 7.395 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.968, allocations: 3.644 MB / 1.356 GB, free: 6.824 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.666/9.634, allocations: 10.34 kB / 1.356 GB, free: 6.82 MB / 1.061 GB " [Timeout remaining time 290] (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] [Calling os._exit(0), Time elapsed: 16.119583837979008] Failed to read output from testmodel.py, exit status != 0: 9.764770617999602 9.785628257 8.845247819 Calling exit ...