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.001446/0.001446, 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.001463/0.001463, allocations: 215.3 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.386/3.386, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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.002095/0.002095, allocations: 69.27 kB / 1.155 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3398, allocations: 176.1 MB / 1.327 GB, free: 1.5 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002408/0.3423, allocations: 0.7419 MB / 1.327 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001925/0.3442, allocations: 1.252 MB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.106e-05/0.3443, allocations: 8 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.871e-05/0.3443, allocations: 15.8 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.559e-05/0.3444, allocations: 15.86 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007745/0.3452, allocations: 257.9 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000354/0.3455, allocations: 255.6 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.3457, allocations: 41.22 kB / 1.329 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.3459, allocations: 115.7 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.3461, allocations: 103.7 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.497e-05/0.3461, allocations: 24 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.3463, allocations: 35.98 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.063e-05/0.3463, allocations: 31.91 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.3465, allocations: 91.73 kB / 1.33 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.3469, allocations: 247.4 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3469, allocations: 0 / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.835e-06/0.3469, allocations: 0 / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.3469, allocations: 0 / 1.33 GB, free: 14.28 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.0009888/0.3479, allocations: 425.2 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/0.348, allocations: 16.03 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.238e-05/0.348, allocations: 192 / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.319e-05/0.3481, allocations: 50.72 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.26e-05/0.3482, allocations: 20.84 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006503/0.3488, allocations: 186.4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.3489, allocations: 16.31 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.3489, allocations: 24.36 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.3492, allocations: 132.4 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.3492, allocations: 4 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.3493, allocations: 3.984 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.3493, allocations: 4 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.3494, allocations: 71.91 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007592/0.3502, allocations: 379.5 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.3504, allocations: 78.55 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.851e-05/0.3505, allocations: 36.77 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.3505, allocations: 0 / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004712/0.351, allocations: 135.2 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 2.014e-06/0.351, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.0005529/0.3515, allocations: 247.3 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.3516, allocations: 51.41 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.3518, allocations: 144 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.3518, allocations: 33.7 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.352, allocations: 112.6 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.172e-05/0.352, allocations: 35.8 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.3521, allocations: 65.69 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3523, allocations: 326.8 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.3525, allocations: 131.3 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.3527, allocations: 187 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.353, allocations: 214.9 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.353, allocations: 4 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005628/0.3536, allocations: 394.4 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.865e-05/0.3536, allocations: 67.39 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3536, allocations: 7.938 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3537, allocations: 0 / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.365e-05/0.3537, allocations: 7.938 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3537, allocations: 4 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.354, allocations: 64.08 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3541, allocations: 15.98 kB / 1.333 GB, free: 10.33 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.0001739/0.3542, allocations: 142.2 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.3543, allocations: 11.94 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.3543, allocations: 12.78 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3543, allocations: 4 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3543, allocations: 0 / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3544, allocations: 4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.355, allocations: 453.4 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.355, allocations: 0 / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.314e-05/0.3551, allocations: 0 / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3551, allocations: 0 / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.3551, allocations: 11.98 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3551, allocations: 0 / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3551, allocations: 0 / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.3555, allocations: 301.5 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.3555, allocations: 11.95 kB / 1.334 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.3556, allocations: 7.922 kB / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.3556, allocations: 8 kB / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.3557, allocations: 15.95 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.3557, allocations: 12 kB / 1.334 GB, free: 9.277 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.737e-05/0.3558, allocations: 95.27 kB / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3558, allocations: 0 / 1.334 GB, free: 9.184 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003376/0.3561, allocations: 51.88 kB / 1.334 GB, free: 9.133 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.0008883/0.357, allocations: 0.8333 MB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004632/0.3575, allocations: 326.1 kB / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3575, allocations: 0 / 1.336 GB, free: 7.918 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3576, allocations: 58.72 kB / 1.336 GB, free: 7.863 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.3579, allocations: 31.91 kB / 1.336 GB, free: 7.832 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.3609, allocations: 2.3 MB / 1.338 GB, free: 5.34 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.361, allocations: 94.78 kB / 1.338 GB, free: 5.227 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.481e-05/0.3611, allocations: 13.08 kB / 1.338 GB, free: 5.215 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.53e-05/0.3612, allocations: 35.42 kB / 1.338 GB, free: 5.18 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.3612, allocations: 4 kB / 1.338 GB, free: 5.176 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.389, allocations: 4.026 MB / 1.342 GB, free: 1.348 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.11, allocations: 6.625 kB / 1.342 GB, free: 1.344 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: 19.160275437985547] Failed to read output from testmodel.py, exit status != 0: 12.271382040926255 12.287454123 11.937430296 Calling exit ...