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.001377/0.001377, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001811/0.001811, allocations: 215.2 kB / 23.04 MB, free: 5.07 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.551/1.551, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.231/3.231, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 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="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.002146/0.002146, allocations: 65.38 kB / 1.171 GB, free: 19.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3967, allocations: 179 MB / 1.345 GB, free: 500 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002167/0.3988, allocations: 0.7738 MB / 1.346 GB, free: 15.71 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00185/0.4007, allocations: 1.276 MB / 1.347 GB, free: 14.42 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.12e-05/0.4007, allocations: 0 / 1.347 GB, free: 14.42 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.63e-05/0.4008, allocations: 15.75 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.838e-05/0.4009, allocations: 19.84 kB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007207/0.4016, allocations: 258.9 kB / 1.348 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.402, allocations: 259.4 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.4021, allocations: 41.05 kB / 1.348 GB, free: 13.85 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.4022, allocations: 107.8 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.4024, allocations: 103.7 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.4025, allocations: 24 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.364e-05/0.4026, allocations: 35.98 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.4026, allocations: 39.91 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.4027, allocations: 99.67 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.4031, allocations: 247.4 kB / 1.349 GB, free: 13.2 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4031, allocations: 0 / 1.349 GB, free: 13.2 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4031, allocations: 0 / 1.349 GB, free: 13.2 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.4031, allocations: 0 / 1.349 GB, free: 13.2 MB / 1.045 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.0007017/0.4038, allocations: 433.1 kB / 1.349 GB, free: 12.73 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.4038, allocations: 11.97 kB / 1.349 GB, free: 12.72 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.9e-05/0.4038, allocations: 4.188 kB / 1.349 GB, free: 12.72 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.763e-05/0.4039, allocations: 46.73 kB / 1.349 GB, free: 12.66 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.404, allocations: 20.89 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.4045, allocations: 182.3 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.4045, allocations: 16.38 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.4045, allocations: 24.36 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.4048, allocations: 129.7 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.4048, allocations: 3.938 kB / 1.349 GB, free: 12.27 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.4048, allocations: 4 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.4048, allocations: 4 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.405, allocations: 75.95 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.4056, allocations: 419.4 kB / 1.35 GB, free: 11.73 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.4058, allocations: 82.47 kB / 1.35 GB, free: 11.64 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.668e-05/0.4058, allocations: 40.78 kB / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.4058, allocations: 0 / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003113/0.4061, allocations: 135.2 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.4061, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.0004734/0.4066, allocations: 240.2 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.4067, allocations: 55.41 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.4068, allocations: 144.7 kB / 1.351 GB, free: 11 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.4069, allocations: 45.64 kB / 1.351 GB, free: 10.95 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.407, allocations: 112.6 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/0.407, allocations: 31.8 kB / 1.351 GB, free: 10.8 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.4072, allocations: 69.67 kB / 1.351 GB, free: 10.73 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4073, allocations: 322.8 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.4075, allocations: 67.95 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.4077, allocations: 129 kB / 1.351 GB, free: 10.18 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.408, allocations: 215 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.408, allocations: 0 / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004926/0.4085, allocations: 318.8 kB / 1.352 GB, free: 9.605 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.98e-05/0.4085, allocations: 67.64 kB / 1.352 GB, free: 9.527 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.4085, allocations: 4 kB / 1.352 GB, free: 9.523 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.4085, allocations: 4 kB / 1.352 GB, free: 9.52 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.806e-05/0.4086, allocations: 7.938 kB / 1.352 GB, free: 9.512 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.4086, allocations: 4 kB / 1.352 GB, free: 9.508 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.4089, allocations: 59.83 kB / 1.352 GB, free: 9.449 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.4089, allocations: 15.98 kB / 1.352 GB, free: 9.434 MB / 1.045 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.0001362/0.4091, allocations: 145.7 kB / 1.352 GB, free: 9.281 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.4091, allocations: 11.94 kB / 1.352 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.4091, allocations: 12.78 kB / 1.352 GB, free: 9.254 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4091, allocations: 0 / 1.352 GB, free: 9.254 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4091, allocations: 0 / 1.352 GB, free: 9.254 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4091, allocations: 3.984 kB / 1.352 GB, free: 9.25 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005864/0.4097, allocations: 469.3 kB / 1.353 GB, free: 8.742 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4097, allocations: 4 kB / 1.353 GB, free: 8.738 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.051e-05/0.4097, allocations: 0 / 1.353 GB, free: 8.738 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.4098, allocations: 4 kB / 1.353 GB, free: 8.734 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.4098, allocations: 3.984 kB / 1.353 GB, free: 8.73 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4098, allocations: 0 / 1.353 GB, free: 8.73 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4098, allocations: 0 / 1.353 GB, free: 8.73 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000327/0.4101, allocations: 297.1 kB / 1.353 GB, free: 8.426 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.44e-05/0.4101, allocations: 7.953 kB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.4101, allocations: 3.984 kB / 1.353 GB, free: 8.414 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/0.4102, allocations: 15.94 kB / 1.353 GB, free: 8.398 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.4103, allocations: 15.97 kB / 1.353 GB, free: 8.383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.4103, allocations: 8 kB / 1.353 GB, free: 8.375 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.16e-05/0.4104, allocations: 99.27 kB / 1.353 GB, free: 8.277 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4104, allocations: 0 / 1.353 GB, free: 8.277 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003121/0.4107, allocations: 51.88 kB / 1.353 GB, free: 8.227 MB / 1.045 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.0007608/0.4114, allocations: 0.8293 MB / 1.354 GB, free: 7.371 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004448/0.4119, allocations: 262.7 kB / 1.354 GB, free: 7.09 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4119, allocations: 0 / 1.354 GB, free: 7.09 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.412, allocations: 62.02 kB / 1.354 GB, free: 7.031 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.4123, allocations: 28.47 kB / 1.354 GB, free: 7.004 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.415, allocations: 2.05 MB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.4155, allocations: 0.7085 MB / 1.357 GB, free: 4.066 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 6.844e-05/0.4155, allocations: 13.08 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.4156, allocations: 39.42 kB / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of SimCode: time 1.333e-06/0.4156, allocations: 0 / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.4411, allocations: 3.836 MB / 1.361 GB, free: 344 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.79, allocations: 9.109 kB / 1.361 GB, free: 336 kB / 1.045 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] [Calling os._exit(0), Time elapsed: 18.715223628038075] Failed to read output from testmodel.py, exit status != 0: 11.948954963998403 11.965587462 11.559346354 Calling exit ...