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.001344/0.001344, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001712/0.001712, allocations: 217 kB / 23.03 MB, free: 4.922 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 / 256.8 MB, free: 7.801 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.222/3.222, allocations: 0.5003 GB / 0.8062 GB, free: 28.26 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.00209/0.00209, allocations: 65.91 kB / 1.171 GB, free: 19.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3549, allocations: 179 MB / 1.345 GB, free: 15.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.00224/0.3572, allocations: 0.7543 MB / 1.346 GB, free: 15.17 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001805/0.359, allocations: 1.256 MB / 1.347 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.3e-05/0.359, allocations: 4 kB / 1.347 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.398e-05/0.3591, allocations: 11.86 kB / 1.347 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.319e-05/0.3592, allocations: 19.8 kB / 1.347 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.3599, allocations: 256.8 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000307/0.3602, allocations: 255.4 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.3603, allocations: 48.97 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.3605, allocations: 103.8 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.3606, allocations: 111.6 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.3607, allocations: 24 kB / 1.348 GB, free: 13.09 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-05/0.3608, allocations: 36 kB / 1.348 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.3608, allocations: 43.88 kB / 1.348 GB, free: 13.01 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.3609, allocations: 79.75 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.3612, allocations: 247.5 kB / 1.348 GB, free: 12.69 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3613, allocations: 0 / 1.348 GB, free: 12.69 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3613, allocations: 0 / 1.348 GB, free: 12.69 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.3613, allocations: 0 / 1.348 GB, free: 12.69 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.000666/0.3619, allocations: 433.1 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.362, allocations: 12.03 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.362, allocations: 4.188 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.362, allocations: 46.73 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.3621, allocations: 20.88 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.3626, allocations: 170.5 kB / 1.349 GB, free: 11.94 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.3626, allocations: 28.23 kB / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.907e-05/0.3627, allocations: 20.38 kB / 1.349 GB, free: 11.89 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.3629, allocations: 129.7 kB / 1.349 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.363, allocations: 4 kB / 1.349 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.363, allocations: 8 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.363, allocations: 0 / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.3631, allocations: 71.95 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005916/0.3637, allocations: 375.5 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.3639, allocations: 86.47 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.557e-05/0.3639, allocations: 40.78 kB / 1.35 GB, free: 11.13 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.364, allocations: 0 / 1.35 GB, free: 11.13 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.3643, allocations: 134.1 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 3.647e-06/0.3643, allocations: 3.984 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.0004613/0.3647, allocations: 241.4 kB / 1.35 GB, free: 10.75 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.3648, allocations: 59.41 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.3649, allocations: 143 kB / 1.35 GB, free: 10.53 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.365, allocations: 33.7 kB / 1.35 GB, free: 10.49 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.667e-05/0.3651, allocations: 112.6 kB / 1.351 GB, free: 10.37 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.3651, allocations: 31.78 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.3652, allocations: 73.62 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3654, allocations: 326.8 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.3656, allocations: 127.4 kB / 1.351 GB, free: 9.797 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.3658, allocations: 188.1 kB / 1.351 GB, free: 9.574 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.3661, allocations: 217.4 kB / 1.351 GB, free: 9.324 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3661, allocations: 7.938 kB / 1.351 GB, free: 9.316 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005387/0.3666, allocations: 372 kB / 1.352 GB, free: 8.922 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.423e-05/0.3667, allocations: 67.33 kB / 1.352 GB, free: 8.844 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.3667, allocations: 7.938 kB / 1.352 GB, free: 8.836 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3667, allocations: 4 kB / 1.352 GB, free: 8.832 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.761e-05/0.3667, allocations: 4 kB / 1.352 GB, free: 8.828 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3668, allocations: 7.984 kB / 1.352 GB, free: 8.82 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.3671, allocations: 64.08 kB / 1.352 GB, free: 8.758 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.3671, allocations: 19.94 kB / 1.352 GB, free: 8.738 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.0001386/0.3673, allocations: 133.8 kB / 1.352 GB, free: 8.598 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.3673, allocations: 11.95 kB / 1.352 GB, free: 8.586 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.001e-05/0.3673, allocations: 8.781 kB / 1.352 GB, free: 8.574 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3673, allocations: 4 kB / 1.352 GB, free: 8.57 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3673, allocations: 4 kB / 1.352 GB, free: 8.566 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3673, allocations: 3.984 kB / 1.352 GB, free: 8.562 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005772/0.3679, allocations: 453.4 kB / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3679, allocations: 0 / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.575e-05/0.3679, allocations: 8 kB / 1.353 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3679, allocations: 0 / 1.353 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.3679, allocations: 7.984 kB / 1.353 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3679, allocations: 0 / 1.353 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.368, allocations: 0 / 1.353 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003293/0.3683, allocations: 296.9 kB / 1.353 GB, free: 7.75 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.3683, allocations: 11.95 kB / 1.353 GB, free: 7.738 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.3683, allocations: 7.984 kB / 1.353 GB, free: 7.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.192e-05/0.3684, allocations: 8 kB / 1.353 GB, free: 7.723 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.3684, allocations: 11.97 kB / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.3685, allocations: 12 kB / 1.353 GB, free: 7.699 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.148e-05/0.3685, allocations: 97.39 kB / 1.353 GB, free: 7.605 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3685, allocations: 0 / 1.353 GB, free: 7.605 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003336/0.3688, allocations: 55.88 kB / 1.353 GB, free: 7.551 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.0006937/0.3695, allocations: 0.8294 MB / 1.354 GB, free: 6.695 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004432/0.37, allocations: 332.4 kB / 1.354 GB, free: 6.336 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.37, allocations: 0 / 1.354 GB, free: 6.336 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.3701, allocations: 63.89 kB / 1.354 GB, free: 6.273 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.3704, allocations: 27.91 kB / 1.354 GB, free: 6.246 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.373, allocations: 2.298 MB / 1.357 GB, free: 3.75 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.3732, allocations: 98.77 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.126e-05/0.3732, allocations: 9.094 kB / 1.357 GB, free: 3.621 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.3733, allocations: 39.42 kB / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of SimCode: time 4.51e-07/0.3733, allocations: 4 kB / 1.357 GB, free: 3.582 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.3989, allocations: 4.006 MB / 1.361 GB, free: 15.77 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.95, allocations: 13.95 kB / 1.361 GB, free: 15.76 MB / 1.061 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.768493996933103] Failed to read output from testmodel.py, exit status != 0: 12.114167152089067 12.141417379 11.776035775 Calling exit ...