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.001441/0.001441, 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.00167/0.00167, allocations: 215.1 kB / 23.04 MB, free: 5.074 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.878/2.878, allocations: 476.7 MB / 0.7715 GB, free: 4.27 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_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.002015/0.002015, allocations: 60.84 kB / 1.118 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3405, allocations: 169.9 MB / 1.284 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002436/0.3429, allocations: 0.7792 MB / 1.285 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002167/0.3451, allocations: 1.289 MB / 1.286 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.3452, allocations: 0 / 1.286 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.279e-05/0.3453, allocations: 11.88 kB / 1.286 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.3454, allocations: 19.8 kB / 1.286 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008518/0.3462, allocations: 254.4 kB / 1.286 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.3466, allocations: 251.6 kB / 1.287 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3468, allocations: 37.3 kB / 1.287 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.3469, allocations: 107.8 kB / 1.287 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.3471, allocations: 107.7 kB / 1.287 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.672e-05/0.3472, allocations: 27.94 kB / 1.287 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.3473, allocations: 47.92 kB / 1.287 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.779e-05/0.3473, allocations: 31.91 kB / 1.287 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.3474, allocations: 99.61 kB / 1.287 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003631/0.3478, allocations: 247.5 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3478, allocations: 0 / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3478, allocations: 0 / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.3478, allocations: 4 kB / 1.287 GB, free: 8.395 MB / 0.9825 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.0006953/0.3485, allocations: 429.1 kB / 1.288 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3486, allocations: 16.03 kB / 1.288 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.987e-05/0.3486, allocations: 4.188 kB / 1.288 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.622e-05/0.3486, allocations: 46.73 kB / 1.288 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.3487, allocations: 20.84 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.3492, allocations: 170.5 kB / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.3493, allocations: 20.31 kB / 1.288 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.3493, allocations: 24.36 kB / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.3496, allocations: 134.4 kB / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3496, allocations: 0 / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.3496, allocations: 7.984 kB / 1.288 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.3496, allocations: 4 kB / 1.288 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3498, allocations: 63.97 kB / 1.288 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.3504, allocations: 423.3 kB / 1.289 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.3506, allocations: 90.47 kB / 1.289 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.187e-05/0.3507, allocations: 36.78 kB / 1.289 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.3507, allocations: 0 / 1.289 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.351, allocations: 127.3 kB / 1.289 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.351, allocations: 0 / 1.289 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0004887/0.3515, allocations: 247.9 kB / 1.289 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.3515, allocations: 59.39 kB / 1.289 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.3516, allocations: 136.9 kB / 1.289 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.3517, allocations: 33.7 kB / 1.289 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3518, allocations: 116.6 kB / 1.289 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.3518, allocations: 35.8 kB / 1.29 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3519, allocations: 69.67 kB / 1.29 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3521, allocations: 318.8 kB / 1.29 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.3522, allocations: 75.89 kB / 1.29 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.3524, allocations: 123.7 kB / 1.29 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.3527, allocations: 218.1 kB / 1.29 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3527, allocations: 0 / 1.29 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005376/0.3533, allocations: 320.6 kB / 1.291 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.883e-05/0.3533, allocations: 69.73 kB / 1.291 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3533, allocations: 7.875 kB / 1.291 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3534, allocations: 4 kB / 1.291 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.652e-05/0.3534, allocations: 4 kB / 1.291 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.3534, allocations: 4 kB / 1.291 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.3537, allocations: 64.08 kB / 1.291 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.3538, allocations: 19.98 kB / 1.291 GB, free: 4.633 MB / 0.9825 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.0001444/0.3539, allocations: 135.5 kB / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.3539, allocations: 15.94 kB / 1.291 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.354, allocations: 8.781 kB / 1.291 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.354, allocations: 4 kB / 1.291 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.354, allocations: 0 / 1.291 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.354, allocations: 4 kB / 1.291 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005491/0.3545, allocations: 465.3 kB / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3545, allocations: 0 / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.073e-05/0.3546, allocations: 4 kB / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3546, allocations: 0 / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3546, allocations: 7.984 kB / 1.291 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3546, allocations: 0 / 1.291 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3546, allocations: 0 / 1.291 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003734/0.355, allocations: 307.2 kB / 1.292 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.724e-05/0.355, allocations: 7.953 kB / 1.292 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.355, allocations: 3.984 kB / 1.292 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.423e-05/0.3551, allocations: 7.938 kB / 1.292 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.3551, allocations: 15.97 kB / 1.292 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.3551, allocations: 12 kB / 1.292 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.433e-05/0.3552, allocations: 91.27 kB / 1.292 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3552, allocations: 0 / 1.292 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000327/0.3555, allocations: 55.88 kB / 1.292 GB, free: 3.438 MB / 0.9825 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.0007368/0.3563, allocations: 0.8336 MB / 1.293 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004438/0.3567, allocations: 263 kB / 1.293 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3567, allocations: 8.062 kB / 1.293 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.3568, allocations: 51.97 kB / 1.293 GB, free: 2.242 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.3572, allocations: 27.91 kB / 1.293 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3599, allocations: 2.053 MB / 1.295 GB, free: 16 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3603, allocations: 0.7046 MB / 1.296 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.085e-05/0.3603, allocations: 17.08 kB / 1.296 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.3604, allocations: 39.42 kB / 1.296 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of SimCode: time 5.52e-07/0.3604, allocations: 0 / 1.296 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.3857, allocations: 3.842 MB / 1.299 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.81, allocations: 3.781 kB / 1.299 GB, free: 11.55 MB / 0.9981 GB " [Timeout remaining time 287] (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] [Calling os._exit(0), Time elapsed: 18.631583634996787] Failed to read output from testmodel.py, exit status != 0: 12.516931649995968 11.991636204 11.639964617 Calling exit ...