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.001115/0.001115, allocations: 104.1 kB / 16.36 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001127, allocations: 194.2 kB / 17.3 MB, free: 5.891 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.385/1.385, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.888/1.888, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001495/0.001495, allocations: 72.47 kB / 0.6729 GB, free: 5.77 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2587, allocations: 114.6 MB / 0.7848 GB, free: 3.094 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002424/0.2612, allocations: 0.7795 MB / 0.7856 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001969/0.2632, allocations: 1.332 MB / 0.7869 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2633, allocations: 4 kB / 0.7869 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.276e-05/0.2634, allocations: 15.8 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.375e-05/0.2635, allocations: 15.86 kB / 0.7869 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009217/0.2644, allocations: 318.2 kB / 0.7872 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.2648, allocations: 371.5 kB / 0.7876 GB, free: 264 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.265, allocations: 53.09 kB / 0.7876 GB, free: 212 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.2652, allocations: 151.8 kB / 0.7878 GB, free: 60 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.4249/0.6902, allocations: 137.6 kB / 0.7879 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.6904, allocations: 37.28 kB / 0.7879 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.6906, allocations: 49.34 kB / 0.788 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.707e-05/0.6907, allocations: 67.28 kB / 0.788 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.6908, allocations: 130.2 kB / 0.7882 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.6913, allocations: 340.9 kB / 0.7885 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.6913, allocations: 0 / 0.7885 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.214e-06/0.6913, allocations: 1.25 kB / 0.7885 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.6913, allocations: 0 / 0.7885 GB, free: 46.88 MB / 0.6544 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.0007443/0.6921, allocations: 0.5418 MB / 0.789 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.6921, allocations: 11.03 kB / 0.789 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.701e-05/0.6922, allocations: 28.48 kB / 0.789 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005217/0.6927, allocations: 256.1 kB / 0.7893 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.6928, allocations: 22.3 kB / 0.7893 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.6929, allocations: 33.22 kB / 0.7893 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003514/0.6932, allocations: 214.5 kB / 0.7895 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.6932, allocations: 3.938 kB / 0.7896 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.036e-05/0.6933, allocations: 11.05 kB / 0.7896 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.6933, allocations: 8.078 kB / 0.7896 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.6935, allocations: 95.66 kB / 0.7897 GB, free: 46.22 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.6942, allocations: 0.5671 MB / 0.7902 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.6947, allocations: 259.2 kB / 0.7905 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.6948, allocations: 122.6 kB / 0.7906 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.6949, allocations: 5.406 kB / 0.7906 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007343/0.6956, allocations: 0.4889 MB / 0.7911 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=44): time 1.683e-06/0.6956, allocations: 0 / 0.7911 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=44): time 0.0009099/0.6965, allocations: 0.5608 MB / 0.7916 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.6966, allocations: 66.66 kB / 0.7917 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.6967, allocations: 152.1 kB / 0.7918 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.6968, allocations: 56.86 kB / 0.7919 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.6968, allocations: 111.5 kB / 0.792 GB, free: 45.5 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.6969, allocations: 99.11 kB / 0.7921 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.6971, allocations: 126.3 kB / 0.7922 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.552e-05/0.6972, allocations: 335.6 kB / 0.7925 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.6974, allocations: 174.9 kB / 0.7927 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.6977, allocations: 282.8 kB / 0.793 GB, free: 45.02 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.6981, allocations: 368.4 kB / 0.7933 GB, free: 44.84 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6981, allocations: 0.75 kB / 0.7933 GB, free: 44.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007439/0.6989, allocations: 0.5637 MB / 0.7939 GB, free: 44.72 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.898e-05/0.6989, allocations: 75.62 kB / 0.7939 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.699, allocations: 2.594 kB / 0.7939 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.699, allocations: 4.375 kB / 0.7939 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.878e-05/0.6991, allocations: 31.12 kB / 0.794 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.6991, allocations: 5.188 kB / 0.794 GB, free: 44.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.6995, allocations: 81.61 kB / 0.794 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.145e-05/0.6995, allocations: 37.45 kB / 0.7941 GB, free: 44.64 MB / 0.6544 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.0001682/0.6997, allocations: 172.2 kB / 0.7942 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.6998, allocations: 25.16 kB / 0.7943 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.694e-05/0.6999, allocations: 32.62 kB / 0.7943 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.6999, allocations: 7.438 kB / 0.7943 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.6999, allocations: 3.719 kB / 0.7943 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.6999, allocations: 2.906 kB / 0.7943 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008577/0.7008, allocations: 0.8498 MB / 0.7951 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.7008, allocations: 0 / 0.7951 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.911e-05/0.7008, allocations: 12.66 kB / 0.7952 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.7008, allocations: 7.875 kB / 0.7952 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.7009, allocations: 24.14 kB / 0.7952 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.7009, allocations: 5.031 kB / 0.7952 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.7009, allocations: 3.656 kB / 0.7952 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006052/0.7015, allocations: 0.5341 MB / 0.7957 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.7015, allocations: 98.95 kB / 0.7958 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.7016, allocations: 21.11 kB / 0.7958 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.648e-05/0.7017, allocations: 14.08 kB / 0.7958 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.7018, allocations: 56.22 kB / 0.7959 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.886e-05/0.7019, allocations: 26.61 kB / 0.7959 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.754e-05/0.702, allocations: 101.7 kB / 0.796 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.702, allocations: 0 / 0.796 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004056/0.7024, allocations: 102.1 kB / 0.7961 GB, free: 43.86 MB / 0.6544 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.0002023/0.7026, allocations: 138.9 kB / 0.7962 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000775/0.7034, allocations: 0.5497 MB / 0.7968 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.7034, allocations: 3.344 kB / 0.7968 GB, free: 43.63 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.7037, allocations: 261.8 kB / 0.797 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.7041, allocations: 40.31 kB / 0.7971 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007935/0.7049, allocations: 464 kB / 0.7975 GB, free: 43.42 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.7051, allocations: 0.7335 MB / 0.7982 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.7052, allocations: 45.39 kB / 0.7983 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of SimCode: time 4.11e-07/0.7052, allocations: 0.9375 kB / 0.7983 GB, free: 42.72 MB / 0.6544 GB Notification: Performance of Templates: time 0.008188/0.7134, allocations: 3.73 MB / 0.8019 GB, free: 42.5 MB / 0.6544 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)