Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 195.4 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.803/1.803, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001666, allocations: 68.12 kB / 0.6715 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3019, allocations: 114.5 MB / 0.7834 GB, free: 13.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.00232/0.3043, allocations: 0.7818 MB / 0.7841 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3062, allocations: 1.337 MB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.361e-05/0.3063, allocations: 0 / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.097e-05/0.3064, allocations: 11.81 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.786e-05/0.3065, allocations: 15.84 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.3073, allocations: 306.2 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.3077, allocations: 371.5 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.3078, allocations: 56.88 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.308, allocations: 155.7 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.3082, allocations: 119.6 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.945e-05/0.3083, allocations: 36 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.3084, allocations: 55.97 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.889e-05/0.3085, allocations: 63.86 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.3086, allocations: 135.6 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.309, allocations: 335.4 kB / 0.787 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.309, allocations: 3.938 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.054e-06/0.309, allocations: 0 / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.309, allocations: 4 kB / 0.787 GB, free: 9.695 MB / 0.6075 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.0008268/0.3099, allocations: 0.5414 MB / 0.7876 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3099, allocations: 8.031 kB / 0.7876 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.576e-05/0.31, allocations: 32.75 kB / 0.7876 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006093/0.3106, allocations: 252.4 kB / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.978e-05/0.3107, allocations: 24.36 kB / 0.7879 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-05/0.3108, allocations: 40.3 kB / 0.7879 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.3112, allocations: 217.9 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3112, allocations: 3.938 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.3113, allocations: 15.97 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3113, allocations: 0 / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.3115, allocations: 99.94 kB / 0.7882 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/0.3123, allocations: 0.5664 MB / 0.7888 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004409/0.3127, allocations: 262.5 kB / 0.789 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3129, allocations: 116.8 kB / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.3129, allocations: 4.094 kB / 0.7892 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007265/0.3137, allocations: 0.4941 MB / 0.7896 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 1.803e-06/0.3137, allocations: 0 / 0.7896 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.0009503/0.3146, allocations: 0.5636 MB / 0.7902 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.3147, allocations: 63.3 kB / 0.7902 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.3149, allocations: 160.3 kB / 0.7904 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.3149, allocations: 53.69 kB / 0.7904 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.287e-05/0.315, allocations: 116.8 kB / 0.7906 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.795e-05/0.3151, allocations: 94.94 kB / 0.7907 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.3153, allocations: 126.2 kB / 0.7908 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.3155, allocations: 334.8 kB / 0.7911 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.3158, allocations: 181 kB / 0.7913 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.3162, allocations: 285.8 kB / 0.7915 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.3166, allocations: 369.1 kB / 0.7919 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3166, allocations: 0 / 0.7919 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008169/0.3174, allocations: 0.5643 MB / 0.7924 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.46e-05/0.3175, allocations: 63.41 kB / 0.7925 GB, free: 3.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3175, allocations: 4 kB / 0.7925 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.3176, allocations: 4 kB / 0.7925 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.003e-05/0.3176, allocations: 31.8 kB / 0.7925 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.724e-05/0.3177, allocations: 15.92 kB / 0.7926 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003742/0.318, allocations: 80 kB / 0.7926 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.3181, allocations: 24 kB / 0.7927 GB, free: 3.594 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 70 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,tru.y,fal.y,truCleTruIni.clr,$PRE.truCleTruIni.clr,truCleFalIni.clr,$PRE.truCleFalIni.clr,falCleTruIni.clr,$PRE.falCleTruIni.clr,falCleFalIni.clr,$PRE.falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleTruIni.y,falCleTruIni.u,$PRE.falCleTruIni.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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.0001936/0.3183, allocations: 178.9 kB / 0.7928 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.3183, allocations: 27.78 kB / 0.7928 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.148e-05/0.3184, allocations: 38.31 kB / 0.7929 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3184, allocations: 7.938 kB / 0.7929 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3185, allocations: 0 / 0.7929 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3185, allocations: 3.984 kB / 0.7929 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000986/0.3195, allocations: 0.8431 MB / 0.7937 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3195, allocations: 4 kB / 0.7937 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/0.3195, allocations: 15.92 kB / 0.7937 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.78e-06/0.3195, allocations: 3.938 kB / 0.7937 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.3196, allocations: 27.91 kB / 0.7938 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.3196, allocations: 0 / 0.7938 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3196, allocations: 0 / 0.7938 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00066/0.3202, allocations: 0.5342 MB / 0.7943 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.3203, allocations: 108.7 kB / 0.7944 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.816e-05/0.3204, allocations: 23.98 kB / 0.7944 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/0.3205, allocations: 11.98 kB / 0.7944 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3206, allocations: 51.92 kB / 0.7945 GB, free: 1.625 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.3207, allocations: 31.97 kB / 0.7945 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.539e-05/0.3207, allocations: 99.27 kB / 0.7946 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3207, allocations: 0 / 0.7946 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003735/0.3211, allocations: 91.98 kB / 0.7947 GB, free: 1.406 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 14 (falCleFalIni.u,falCleTruIni.u,truCleTruIni.u,truCleFalIni.u,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,truCleFalIni.y,falCleFalIni.y,truCleTruIni.y,falCleTruIni.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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.0003051/0.3214, allocations: 143.2 kB / 0.7948 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009161/0.3223, allocations: 0.5649 MB / 0.7954 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3224, allocations: 0.75 kB / 0.7954 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002964/0.3227, allocations: 263.7 kB / 0.7956 GB, free: 420 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.323, allocations: 43.84 kB / 0.7957 GB, free: 376 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008067/0.3238, allocations: 448.8 kB / 0.7961 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.3241, allocations: 0.7371 MB / 0.7968 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.869e-05/0.3243, allocations: 30.97 kB / 0.7969 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.765e-05/0.3244, allocations: 43.41 kB / 0.7969 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.3244, allocations: 0 / 0.7969 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of Templates: time 0.007945/0.3323, allocations: 4.196 MB / 0.801 GB, free: 10.89 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)