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.001378/0.001378, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001619/0.001619, allocations: 215 kB / 20.13 MB, free: 2.949 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.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.93/2.93, allocations: 0.49 GB / 0.7923 GB, free: 1.32 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.002024/0.002024, allocations: 67.91 kB / 1.15 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9856/0.9876, allocations: 176.1 MB / 1.321 GB, free: 7.559 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002239/0.9898, allocations: 0.7665 MB / 1.322 GB, free: 6.973 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00198/0.9918, allocations: 1.281 MB / 1.323 GB, free: 5.941 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.638e-05/0.9919, allocations: 2.094 kB / 1.323 GB, free: 5.941 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.547e-05/0.9919, allocations: 7.875 kB / 1.324 GB, free: 5.934 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.085e-05/0.992, allocations: 25.94 kB / 1.324 GB, free: 5.91 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000724/0.9927, allocations: 256.8 kB / 1.324 GB, free: 5.734 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.9931, allocations: 250.9 kB / 1.324 GB, free: 5.594 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.9932, allocations: 38.66 kB / 1.324 GB, free: 5.566 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.9934, allocations: 108.6 kB / 1.324 GB, free: 5.504 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.9935, allocations: 102.5 kB / 1.324 GB, free: 5.426 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.9936, allocations: 25.03 kB / 1.324 GB, free: 5.426 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.814e-05/0.9937, allocations: 39.55 kB / 1.324 GB, free: 5.418 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.076e-05/0.9937, allocations: 34.91 kB / 1.324 GB, free: 5.391 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.9939, allocations: 101.4 kB / 1.324 GB, free: 5.316 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.9942, allocations: 245.1 kB / 1.325 GB, free: 5.129 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.9942, allocations: 0.8438 kB / 1.325 GB, free: 5.129 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9942, allocations: 0 / 1.325 GB, free: 5.129 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.9943, allocations: 3.938 kB / 1.325 GB, free: 5.125 MB / 1.014 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.0008168/0.9951, allocations: 0.4983 MB / 1.325 GB, free: 4.617 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.9951, allocations: 13.61 kB / 1.325 GB, free: 4.613 MB / 1.014 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.068e-05/0.9951, allocations: 3.656 kB / 1.325 GB, free: 4.613 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.9952, allocations: 41.55 kB / 1.325 GB, free: 4.566 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.9953, allocations: 21.44 kB / 1.325 GB, free: 4.559 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.9958, allocations: 254.9 kB / 1.325 GB, free: 4.297 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.9959, allocations: 12.2 kB / 1.326 GB, free: 4.293 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.9959, allocations: 21.31 kB / 1.326 GB, free: 4.289 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.9962, allocations: 130.9 kB / 1.326 GB, free: 4.199 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.9962, allocations: 3.984 kB / 1.326 GB, free: 4.195 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.9962, allocations: 6.375 kB / 1.326 GB, free: 4.191 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.9962, allocations: 6.875 kB / 1.326 GB, free: 4.188 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.9963, allocations: 70.58 kB / 1.326 GB, free: 4.152 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006552/0.997, allocations: 451.6 kB / 1.326 GB, free: 3.727 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.9972, allocations: 89.27 kB / 1.326 GB, free: 3.664 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.594e-05/0.9972, allocations: 39.86 kB / 1.326 GB, free: 3.637 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.669e-06/0.9973, allocations: 0 / 1.326 GB, free: 3.637 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.9975, allocations: 132.3 kB / 1.326 GB, free: 3.539 MB / 1.014 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.9975, allocations: 0 / 1.326 GB, free: 3.539 MB / 1.014 GB Notification: Performance of matching and sorting (n=16): time 0.0005172/0.9981, allocations: 246.9 kB / 1.327 GB, free: 3.414 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.9981, allocations: 53.5 kB / 1.327 GB, free: 3.352 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.9983, allocations: 138.6 kB / 1.327 GB, free: 3.227 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.9983, allocations: 29.33 kB / 1.327 GB, free: 3.195 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.9984, allocations: 121.6 kB / 1.327 GB, free: 3.082 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.9984, allocations: 29.38 kB / 1.327 GB, free: 3.059 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.9986, allocations: 69.3 kB / 1.327 GB, free: 3.016 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.9987, allocations: 325.1 kB / 1.327 GB, free: 2.691 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.9989, allocations: 67.7 kB / 1.327 GB, free: 2.66 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.9991, allocations: 127.2 kB / 1.328 GB, free: 2.551 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.9994, allocations: 216.3 kB / 1.328 GB, free: 2.359 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.9994, allocations: 0 / 1.328 GB, free: 2.359 MB / 1.014 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005275/0.9999, allocations: 323.7 kB / 1.328 GB, free: 2.152 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.254e-05/1, allocations: 68.33 kB / 1.328 GB, free: 2.082 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/1, allocations: 1.5 kB / 1.328 GB, free: 2.082 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/1, allocations: 8.531 kB / 1.328 GB, free: 2.078 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.802e-05/1, allocations: 4.562 kB / 1.328 GB, free: 2.078 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/1, allocations: 6.391 kB / 1.328 GB, free: 2.074 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/1, allocations: 60.44 kB / 1.328 GB, free: 2.047 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/1, allocations: 16.23 kB / 1.328 GB, free: 2.043 MB / 1.014 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.000139/1.001, allocations: 138.7 kB / 1.328 GB, free: 1.91 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/1.001, allocations: 9.859 kB / 1.328 GB, free: 1.906 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/1.001, allocations: 11.06 kB / 1.328 GB, free: 1.895 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/1.001, allocations: 2.125 kB / 1.328 GB, free: 1.895 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.001, allocations: 0 / 1.328 GB, free: 1.895 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.001, allocations: 3.984 kB / 1.328 GB, free: 1.891 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006118/1.001, allocations: 491.5 kB / 1.329 GB, free: 1.473 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/1.001, allocations: 1.188 kB / 1.329 GB, free: 1.473 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.211e-05/1.001, allocations: 5.141 kB / 1.329 GB, free: 1.469 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/1.001, allocations: 5.156 kB / 1.329 GB, free: 1.465 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/1.001, allocations: 6.219 kB / 1.329 GB, free: 1.461 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/1.001, allocations: 1.094 kB / 1.329 GB, free: 1.461 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/1.001, allocations: 5.156 kB / 1.329 GB, free: 1.457 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/1.002, allocations: 295.5 kB / 1.329 GB, free: 1.25 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/1.002, allocations: 87.52 kB / 1.329 GB, free: 1.148 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/1.002, allocations: 10.03 kB / 1.329 GB, free: 1.141 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.216e-05/1.002, allocations: 6.109 kB / 1.329 GB, free: 1.137 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/1.002, allocations: 13.8 kB / 1.329 GB, free: 1.129 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/1.002, allocations: 11.94 kB / 1.329 GB, free: 1.125 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.661e-05/1.002, allocations: 96.42 kB / 1.329 GB, free: 1.043 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/1.002, allocations: 1.188 kB / 1.329 GB, free: 1.043 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003185/1.002, allocations: 54.38 kB / 1.329 GB, free: 1.027 MB / 1.014 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.0007524/1.003, allocations: 0.8337 MB / 1.33 GB, free: 292 kB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004618/1.003, allocations: 267.7 kB / 1.331 GB, free: 92 kB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.003, allocations: 0 / 1.331 GB, free: 92 kB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/1.004, allocations: 57.56 kB / 1.331 GB, free: 68 kB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/1.004, allocations: 22.25 kB / 1.331 GB, free: 56 kB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/1.007, allocations: 2.049 MB / 1.333 GB, free: 14.29 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/1.007, allocations: 0.7092 MB / 1.333 GB, free: 13.58 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.349e-05/1.007, allocations: 12.23 kB / 1.333 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/1.007, allocations: 34.02 kB / 1.333 GB, free: 13.55 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/1.007, allocations: 0 / 1.333 GB, free: 13.55 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/1.029, allocations: 3.648 MB / 1.337 GB, free: 11.66 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.473/9.502, allocations: 13.44 kB / 1.337 GB, free: 11.65 MB / 1.029 GB " [Timeout remaining time 290] (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: 15.9525385669549] Failed to read output from testmodel.py, exit status != 0: 9.628221164981369 9.651900673 8.653456803 Calling exit ...