Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001702/0.001702, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.002216/0.002216, allocations: 216.8 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.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.162/3.162, allocations: 0.49 GB / 0.7959 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_12_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.002103/0.002103, allocations: 68.64 kB / 1.155 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3537, allocations: 176.1 MB / 1.327 GB, free: 1.949 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002101/0.3558, allocations: 0.773 MB / 1.327 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.3574, allocations: 1.291 MB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.3575, allocations: 0 / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.183e-05/0.3575, allocations: 15.81 kB / 1.329 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.3576, allocations: 15.86 kB / 1.329 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006795/0.3583, allocations: 258.8 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.3586, allocations: 255.6 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.3587, allocations: 37.3 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.3589, allocations: 103.8 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.359, allocations: 111.7 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.3591, allocations: 24 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.349e-05/0.3592, allocations: 39.98 kB / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.184e-05/0.3592, allocations: 35.89 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.3594, allocations: 95.62 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003206/0.3597, allocations: 247.5 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3597, allocations: 3.938 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3597, allocations: 0 / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3597, allocations: 0 / 1.33 GB, free: 14.66 MB / 1.029 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.0006489/0.3603, allocations: 421.2 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.3604, allocations: 20.02 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.963e-05/0.3604, allocations: 4.188 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.926e-05/0.3605, allocations: 46.73 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.018e-05/0.3605, allocations: 20.84 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.361, allocations: 178.4 kB / 1.331 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.3611, allocations: 12.38 kB / 1.331 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.652e-05/0.3611, allocations: 20.38 kB / 1.331 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.3614, allocations: 137.7 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3614, allocations: 7.922 kB / 1.331 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.3614, allocations: 4 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.3614, allocations: 4 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.3615, allocations: 67.95 kB / 1.331 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.3622, allocations: 419.4 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.3623, allocations: 82.53 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.4e-05/0.3624, allocations: 40.78 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.3624, allocations: 0 / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.3627, allocations: 131.2 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.213e-06/0.3627, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.0004743/0.3632, allocations: 247.7 kB / 1.332 GB, free: 12.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.3632, allocations: 55.41 kB / 1.332 GB, free: 12.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3634, allocations: 141.7 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.3634, allocations: 37.64 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.3635, allocations: 112.6 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.3635, allocations: 35.8 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3636, allocations: 69.67 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3638, allocations: 318.8 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.3639, allocations: 67.97 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3641, allocations: 131.6 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3644, allocations: 217.7 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3644, allocations: 0 / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005022/0.3649, allocations: 320.6 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.643e-05/0.3649, allocations: 63.41 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3649, allocations: 3.984 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3649, allocations: 4 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.776e-05/0.365, allocations: 7.938 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.365, allocations: 4 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.3653, allocations: 64.08 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.3654, allocations: 19.98 kB / 1.333 GB, free: 10.89 MB / 1.029 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.0001358/0.3655, allocations: 136.4 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.3655, allocations: 15.94 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.3656, allocations: 8.781 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3656, allocations: 4 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3656, allocations: 4 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3656, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005138/0.3661, allocations: 461.4 kB / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3661, allocations: 0 / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.514e-05/0.3661, allocations: 8 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3661, allocations: 0 / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.3661, allocations: 7.984 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3661, allocations: 0 / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3661, allocations: 0 / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.3664, allocations: 306.3 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.277e-05/0.3665, allocations: 3.953 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.3665, allocations: 7.984 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.15e-05/0.3665, allocations: 4 kB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.3666, allocations: 15.97 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.3666, allocations: 15.94 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.006e-05/0.3667, allocations: 95.2 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3667, allocations: 0 / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003388/0.367, allocations: 55.88 kB / 1.334 GB, free: 9.695 MB / 1.029 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.0006578/0.3677, allocations: 0.8294 MB / 1.335 GB, free: 8.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003994/0.3681, allocations: 259.1 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3681, allocations: 8.062 kB / 1.335 GB, free: 8.555 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.3682, allocations: 55.91 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.3685, allocations: 19.97 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.371, allocations: 2.057 MB / 1.338 GB, free: 6.281 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.3714, allocations: 0.7046 MB / 1.338 GB, free: 5.551 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.982e-05/0.3714, allocations: 17.08 kB / 1.338 GB, free: 5.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.554e-05/0.3715, allocations: 39.42 kB / 1.338 GB, free: 5.496 MB / 1.029 GB Notification: Performance of SimCode: time 8.01e-07/0.3715, allocations: 0 / 1.338 GB, free: 5.496 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.3962, allocations: 3.842 MB / 1.342 GB, free: 1.812 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.78, allocations: 5.141 kB / 1.342 GB, free: 1.812 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.55365505401278] Failed to read output from testmodel.py, exit status != 0: 11.947696062969044 11.970894322 11.606923945 Calling exit ...