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.001383/0.001383, allocations: 97.31 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.00154/0.00154, allocations: 219.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.525/1.525, 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 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.799/2.799, allocations: 476.8 MB / 0.7715 GB, free: 3.895 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.002023/0.002023, allocations: 64.58 kB / 1.118 GB, free: 39.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.33, allocations: 170 MB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002317/0.3323, allocations: 0.744 MB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.334, allocations: 1.262 MB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.165e-05/0.3341, allocations: 0 / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.883e-05/0.3341, allocations: 11.86 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.514e-05/0.3342, allocations: 15.81 kB / 1.286 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007141/0.3349, allocations: 252.8 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.3352, allocations: 259.6 kB / 1.287 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.3354, allocations: 42.69 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3355, allocations: 103.8 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.3357, allocations: 107.7 kB / 1.287 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.3358, allocations: 24 kB / 1.287 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.824e-05/0.3358, allocations: 32 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.654e-05/0.3359, allocations: 39.91 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.336, allocations: 87.67 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.3363, allocations: 250.8 kB / 1.287 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3363, allocations: 0 / 1.287 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.163e-06/0.3363, allocations: 3.938 kB / 1.287 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.3363, allocations: 3.938 kB / 1.287 GB, free: 7.398 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.0006523/0.337, allocations: 433.1 kB / 1.288 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.337, allocations: 8.031 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.263e-05/0.337, allocations: 4.188 kB / 1.288 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.3371, allocations: 42.73 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/0.3371, allocations: 24.78 kB / 1.288 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005204/0.3377, allocations: 182.5 kB / 1.288 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.3377, allocations: 12.36 kB / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.3377, allocations: 20.38 kB / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002471/0.338, allocations: 129.7 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.338, allocations: 0 / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.338, allocations: 11.98 kB / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.338, allocations: 0 / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.3382, allocations: 65.72 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005895/0.3388, allocations: 395.4 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.339, allocations: 78.55 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.728e-05/0.339, allocations: 44.7 kB / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-06/0.339, allocations: 0 / 1.289 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.3393, allocations: 129.3 kB / 1.289 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.3393, allocations: 0 / 1.289 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.000461/0.3398, allocations: 241.4 kB / 1.289 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.3399, allocations: 63.34 kB / 1.289 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.34, allocations: 143.1 kB / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.34, allocations: 29.7 kB / 1.289 GB, free: 5.203 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.62e-05/0.3401, allocations: 116.6 kB / 1.289 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.3401, allocations: 31.78 kB / 1.289 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.3403, allocations: 69.67 kB / 1.289 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3404, allocations: 322.8 kB / 1.29 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.3406, allocations: 131.3 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.3408, allocations: 189.1 kB / 1.29 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.3411, allocations: 218.3 kB / 1.29 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3411, allocations: 0 / 1.29 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005361/0.3416, allocations: 384.2 kB / 1.291 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.951e-05/0.3417, allocations: 69.89 kB / 1.291 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3417, allocations: 0 / 1.291 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.3417, allocations: 4 kB / 1.291 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.753e-05/0.3418, allocations: 11.94 kB / 1.291 GB, free: 3.543 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3418, allocations: 4 kB / 1.291 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.3421, allocations: 55.83 kB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.3421, allocations: 24.02 kB / 1.291 GB, free: 3.461 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.0001521/0.3423, allocations: 141.6 kB / 1.291 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/0.3423, allocations: 11.95 kB / 1.291 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.3423, allocations: 12.77 kB / 1.291 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3423, allocations: 4 kB / 1.291 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3424, allocations: 0 / 1.291 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3424, allocations: 0 / 1.291 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005585/0.3429, allocations: 457.4 kB / 1.291 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3429, allocations: 0 / 1.291 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.48e-05/0.3429, allocations: 8 kB / 1.291 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3429, allocations: 0 / 1.291 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.343, allocations: 7.984 kB / 1.291 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.343, allocations: 0 / 1.291 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.343, allocations: 0 / 1.291 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.3433, allocations: 298.6 kB / 1.292 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.804e-05/0.3433, allocations: 11.91 kB / 1.292 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.3434, allocations: 11.98 kB / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.904e-05/0.3434, allocations: 0 / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.3435, allocations: 15.97 kB / 1.292 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.3435, allocations: 12 kB / 1.292 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.866e-05/0.3436, allocations: 110.7 kB / 1.292 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3436, allocations: 0 / 1.292 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003175/0.3439, allocations: 51.92 kB / 1.292 GB, free: 2.262 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.0007322/0.3446, allocations: 0.8345 MB / 1.293 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004541/0.3451, allocations: 326 kB / 1.293 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3451, allocations: 0.5 kB / 1.293 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.523e-05/0.3452, allocations: 55.97 kB / 1.293 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.3455, allocations: 27.97 kB / 1.293 GB, free: 0.9648 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.3482, allocations: 2.296 MB / 1.295 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.3483, allocations: 98.78 kB / 1.295 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.664e-05/0.3483, allocations: 9.078 kB / 1.295 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.3484, allocations: 39.42 kB / 1.295 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/0.3484, allocations: 3.938 kB / 1.295 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.3736, allocations: 4.006 MB / 1.299 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.85, allocations: 5.562 kB / 1.299 GB, free: 10.48 MB / 0.9981 GB " [Timeout remaining time 288] (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.57824308797717] Failed to read output from testmodel.py, exit status != 0: 12.557557179941796 12.044039352 11.702656176 Calling exit ...